refactor: use tab instead of modal. fixed layout as well.

This commit is contained in:
鲁树人
2023-06-04 23:56:15 +01:00
parent 4620a17e0d
commit b64c2a5fba
9 changed files with 98 additions and 129 deletions

18
src/tabs/MainTab.tsx Normal file
View File

@@ -0,0 +1,18 @@
import { Box, VStack } from '@chakra-ui/react';
import { SelectFile } from '../components/SelectFile';
import { FileListing } from '~/features/file-listing/FileListing';
export function MainTab() {
return (
<Box h="full" w="full" pt="4">
<VStack gap="3">
<SelectFile />
<Box w="full">
<FileListing />
</Box>
</VStack>
</Box>
);
}

10
src/tabs/SettingsTab.tsx Normal file
View File

@@ -0,0 +1,10 @@
export function SettingsTab() {
return (
<div>
<p>Hallo</p>
<p>Thank you, thank you very much.</p>
<p>Ha-Halo, thank you</p>
<p>Thank you very much!</p>
</div>
);
}