Pass store into skin loading (#875)

This commit is contained in:
jberg 2019-08-19 10:22:44 -07:00 committed by Jordan Eldredge
parent 39c3a25c0a
commit 378c9c595b

View file

@ -551,7 +551,7 @@ function App() {
<DropTarget
style={{ width: "100%", height: "100%" }}
handleDrop={e => {
dispatch(Actions.gotSkinBlob(e.dataTransfer.files[0]));
dispatch(Actions.gotSkinBlob(e.dataTransfer.files[0], store));
}}
>
<XmlNode node={root} />
@ -559,7 +559,7 @@ function App() {
<select
style={{ position: "absolute", bottom: 0 }}
onChange={e => {
dispatch(Actions.gotSkinUrl(e.target.value));
dispatch(Actions.gotSkinUrl(e.target.value, store));
}}
>
{skinUrls.map(url => (