fix: Update URL references and conditional checks (#36)

This commit is contained in:
Ильназ 2024-11-24 22:37:19 +03:00
parent 5d1a679c68
commit da244adee0
2 changed files with 6 additions and 6 deletions

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>