diff --git a/src/App.js b/src/App.js index 94e2881..0fd281e 100644 --- a/src/App.js +++ b/src/App.js @@ -286,7 +286,7 @@ function App() { {!!originalPhoto ? (<> - + ) : null} {!!originalPhoto && !!frameURL ? (<> diff --git a/src/FrameChooser.js b/src/FrameChooser.js index 000e0e5..320b4db 100644 --- a/src/FrameChooser.js +++ b/src/FrameChooser.js @@ -1,6 +1,6 @@ import { useState, useEffect, useCallback } from 'react' -function FrameChooser({onFrameChange}) { +function FrameChooser({onChange}) { const [frames, setFrames] = useState([]) const [choosenFrame, setChoosenFrame] = useState(null) @@ -38,8 +38,8 @@ function FrameChooser({onFrameChange}) { }, [setChoosenFrame]) useEffect(() => { - onFrameChange(choosenFrame) - }, [onFrameChange, choosenFrame]) + onChange(choosenFrame) + }, [onChange, choosenFrame]) return (