diff --git a/src/components/Overlay.tsx b/src/components/Overlay.tsx index 43d3f362..62e0deb4 100644 --- a/src/components/Overlay.tsx +++ b/src/components/Overlay.tsx @@ -78,7 +78,9 @@ const Overlay = ({ qboard }: { qboard: QBoard }): JSX.Element => { return ( <> + qboard.history.execute((await qboard.files.acceptFile(file)).history) + } captureRef={(ref) => { qboard.globalState.fileInputRef = ref; }} @@ -109,11 +111,6 @@ const Overlay = ({ qboard }: { qboard: QBoard }): JSX.Element => { - qboard.history.execute( - (await qboard.files.acceptFile(file)).history - ) - } visibility={visibility} isMobile={isMobile} /> diff --git a/src/components/Stylebar.tsx b/src/components/Stylebar.tsx index aed575b6..b2ec2b3f 100644 --- a/src/components/Stylebar.tsx +++ b/src/components/Stylebar.tsx @@ -11,7 +11,6 @@ import StyleMenu from "./StyleMenu"; const Stylebar = (props: { currentStyle: Style; doAction: (action: Action) => void; - acceptFile: (files: FileList) => Promise; visibility: Visibility; isMobile: boolean; }): JSX.Element => {