Use SelectFile component in more places

This commit is contained in:
Gregory Schier
2024-07-23 11:54:35 -07:00
parent 51487d5412
commit 9e04226097
7 changed files with 79 additions and 44 deletions

View File

@@ -28,7 +28,7 @@ export function BinaryFileEditor({
fallback: false,
});
const handleChange = async (filePath: string | null) => {
const handleChange = async ({ filePath }: { filePath: string | null }) => {
await ignoreContentType.set(false);
onChange({ filePath: filePath ?? undefined });
};