diff --git a/src/App.js b/src/App.js index 0fd281e..ff4ac61 100644 --- a/src/App.js +++ b/src/App.js @@ -297,9 +297,10 @@ function App() { */} diff --git a/src/Editor.js b/src/Editor.js index 1928965..06ecdf1 100644 --- a/src/Editor.js +++ b/src/Editor.js @@ -33,7 +33,7 @@ let maxScale = 8; -function Editor({ onChange, background, backgroundRatio, foreground }) { +function Editor({ onChange, backgroundURL, backgroundRatio, frameURL, hashtagURL }) { const editorRef = useRef(null) const backgroundImageRef = useRef(null) @@ -111,7 +111,7 @@ function Editor({ onChange, background, backgroundRatio, foreground }) { set_add_x(0) set_add_y(0) set_scale(1) - }, [background]) + }, [backgroundURL]) const handleMove = useCallback(event => { const prev_x = event.target.dataset.x * 1 @@ -206,7 +206,7 @@ function Editor({ onChange, background, backgroundRatio, foreground }) { data-scale={scale} > + ) }