feat: add sideBar active(#36) #41

Merged
primakov merged 4 commits from feature/sideBar-active into main 2024-11-25 10:11:53 +03:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit da244adee0 - Show all commits

View File

@ -14,8 +14,8 @@ module.exports = {
'dry-wash.main': '/dry-wash',
'dry-wash.create': '/order',
'dry-wash.view.order': '/order/:orderId',
'dry-wash.arm.master': '/master',
'dry-wash.arm.order': '/order',
'dry-wash.arm.master': 'master',
'dry-wash.arm.order': 'order',
'dry-wash.arm': '/arm/*',
},
features: {

View File

@ -33,8 +33,8 @@ const Sidebar = () => {
as={Link}
to={URLs.armOrder.url}
w='100%'
colorScheme={isActive('orders') ? 'green' : 'blue'}
variant={isActive('orders') ? 'solid' : 'ghost'}
colorScheme={isActive(URLs.armOrder.url) ? 'green' : 'blue'}
variant={isActive(URLs.armOrder.url) ? 'solid' : 'ghost'}
>
{t('orders')}
</Button>
@ -45,8 +45,8 @@ const Sidebar = () => {
as={Link}
to={URLs.armMaster.url}
w='100%'
colorScheme={isActive('masters') ? 'green' : 'blue'}
variant={isActive('masters') ? 'solid' : 'ghost'}
colorScheme={isActive(URLs.armMaster.url) ? 'green' : 'blue'}
variant={isActive(URLs.armMaster.url) ? 'solid' : 'ghost'}
>
{t('master')}
</Button>