Use SelectFile component in more places

This commit is contained in:
Gregory Schier
2024-07-23 11:54:35 -07:00
parent a4e223f261
commit fd2c6930f0
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 });
};