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.main': '/dry-wash',
'dry-wash.create': '/order', 'dry-wash.create': '/order',
'dry-wash.view.order': '/order/:orderId', 'dry-wash.view.order': '/order/:orderId',
'dry-wash.arm.master': '/master', 'dry-wash.arm.master': 'master',
'dry-wash.arm.order': '/order', 'dry-wash.arm.order': 'order',
'dry-wash.arm': '/arm/*', 'dry-wash.arm': '/arm/*',
}, },
features: { features: {

View File

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