Skip to content

Commit

Permalink
Fix file dialog not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
keupoz committed Oct 14, 2024
1 parent 1789343 commit f423513
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/react/Tools/ToolsMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ export interface ToolsMainProps {
}

export function ToolsMain({ ctx }: ToolsMainProps) {
const { getRootProps, open } = useToolsDropzone(true);
const { getRootProps, getInputProps, open } = useToolsDropzone(true);

return (
<div
className="flex grid-cols-2 flex-col gap-4 lg:grid"
{...getRootProps()}
>
<input {...getInputProps()} />

<SkinPreview ctx={ctx} />

<Settings requestFile={open} />
Expand Down

0 comments on commit f423513

Please sign in to comment.