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'>
<Divider />
<Link to='orders'>
<Button w='100%' colorScheme='green' variant='ghost'>
{i18next.t(`dry-wash.arm.master.sideBar.title.orders`)}
</Button>
</Link>
<Button
as={Link}
to='orders'
w='100%'
colorScheme='green'
variant='ghost'
>
{i18next.t(`dry-wash.arm.master.sideBar.title.orders`)}
</Button>
<Divider />
<Link to='masters'>
<Button w='100%' colorScheme='green' variant='ghost'>
{i18next.t(`dry-wash.arm.master.sideBar.title.master`)}
</Button>
</Link>
<Button
as={Link}
to='masters'
w='100%'
colorScheme='green'
variant='ghost'
>
{i18next.t(`dry-wash.arm.master.sideBar.title.master`)}
</Button>
<Divider />
</VStack>
</Box>