stye : add global

Deskripsi:
- layout drawer
- navbar group

No issue
This commit is contained in:
lukman
2024-07-08 17:31:32 +08:00
parent 4acac52a0c
commit 5bfd637aa8
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import { WARNA } from '../fun/WARNA';
export default function LayoutDrawer({ opened, onClose, title, children, size }: { children: React.ReactNode, opened: boolean, size?: string, onClose: () => void, title: React.ReactNode }) { export default function LayoutDrawer({ opened, onClose, title, children, size }: { children: React.ReactNode, opened: boolean, size?: string, onClose: () => void, title: React.ReactNode }) {
return ( return (
<Box> <Box>
<Drawer opened={opened} title={<Text c={WARNA.biruTua} fw={'bold'}>{title}</Text>} onClose={onClose} position={"bottom"} size={(size == 'lg') ? '80%' : '30%'} <Drawer opened={opened} title={<Text c={WARNA.biruTua} fw={'bold'}>{title}</Text>} onClose={onClose} position={"bottom"} size={(size == 'lg') ? '80%' : '35%'}
styles={{ styles={{
content: { content: {
backgroundColor: "white", backgroundColor: "white",

View File

@@ -27,7 +27,7 @@ export default function NavbarGroup() {
</Grid.Col> </Grid.Col>
</Grid> </Grid>
</LayoutNavbarHome> </LayoutNavbarHome>
<LayoutDrawer opened={openDrawerMenu.get()} title={'MENU'} onClose={() => openDrawerMenu.set(false)}> <LayoutDrawer opened={openDrawerMenu.get()} title={'Menu'} onClose={() => openDrawerMenu.set(false)}>
<DrawerGroup /> <DrawerGroup />
</LayoutDrawer> </LayoutDrawer>
</> </>