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

@@ -24,7 +24,7 @@ export function ImportDataDialog({ importData }: Props) {
</ul>
</VStack>
<VStack space={2}>
<SelectFile filePath={filePath} onChange={setFilePath} />
<SelectFile filePath={filePath} onChange={({ filePath }) => setFilePath(filePath)} />
{filePath && (
<Button
color="primary"