From e2f3259d411217539d75083162788a150d8480fc Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Sat, 23 Jan 2021 18:44:39 +0100 Subject: [PATCH] changed onFrameChange to onChange --- src/App.js | 2 +- src/FrameChooser.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 (