feat: convert link to button (#14)
All checks were successful
it-academy/dry-wash-pl/pipeline/pr-main This commit looks good
it-academy/dry-wash-pl/pipeline/head This commit looks good

This commit is contained in:
Ильназ 2024-11-16 18:24:51 +03:00
parent 1c8348dee5
commit dedc7e1608

View File

@ -19,17 +19,25 @@ const Sidebar = () => (
<VStack align='start' spacing='4'> <VStack align='start' spacing='4'>
<Divider /> <Divider />
<Link to='orders'> <Button
<Button w='100%' colorScheme='green' variant='ghost'> as={Link}
to='orders'
w='100%'
colorScheme='green'
variant='ghost'
>
{i18next.t(`dry-wash.arm.master.sideBar.title.orders`)} {i18next.t(`dry-wash.arm.master.sideBar.title.orders`)}
</Button> </Button>
</Link>
<Divider /> <Divider />
<Link to='masters'> <Button
<Button w='100%' colorScheme='green' variant='ghost'> as={Link}
to='masters'
w='100%'
colorScheme='green'
variant='ghost'
>
{i18next.t(`dry-wash.arm.master.sideBar.title.master`)} {i18next.t(`dry-wash.arm.master.sideBar.title.master`)}
</Button> </Button>
</Link>
<Divider /> <Divider />
</VStack> </VStack>
</Box> </Box>