feat(MED-97): update team account navigation links
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { CreditCard, LayoutDashboard, Settings, Users } from 'lucide-react';
|
import { Euro, LayoutDashboard, Settings, Users } from 'lucide-react';
|
||||||
|
|
||||||
import { featureFlagsConfig, pathsConfig } from '@kit/shared/config';
|
import { featureFlagsConfig, pathsConfig } from '@kit/shared/config';
|
||||||
import { NavigationConfigSchema } from '@kit/ui/navigation-schema';
|
import { NavigationConfigSchema } from '@kit/ui/navigation-schema';
|
||||||
@@ -9,28 +9,28 @@ const getRoutes = (account: string) => [
|
|||||||
{
|
{
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
label: 'common:routes.dashboard',
|
label: 'common:routes.companyDashboard',
|
||||||
path: pathsConfig.app.accountHome.replace('[account]', account),
|
path: pathsConfig.app.accountHome.replace('[account]', account),
|
||||||
Icon: <LayoutDashboard className={iconClasses} />,
|
Icon: <LayoutDashboard className={iconClasses} />,
|
||||||
end: true,
|
end: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'common:routes.settings',
|
label: 'common:routes.companyMembers',
|
||||||
path: createPath(pathsConfig.app.accountSettings, account),
|
|
||||||
Icon: <Settings className={iconClasses} />,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'common:routes.members',
|
|
||||||
path: createPath(pathsConfig.app.accountMembers, account),
|
path: createPath(pathsConfig.app.accountMembers, account),
|
||||||
Icon: <Users className={iconClasses} />,
|
Icon: <Users className={iconClasses} />,
|
||||||
},
|
},
|
||||||
featureFlagsConfig.enableTeamAccountBilling
|
featureFlagsConfig.enableTeamAccountBilling
|
||||||
? {
|
? {
|
||||||
label: 'common:routes.billing',
|
label: 'common:routes.billing',
|
||||||
path: createPath(pathsConfig.app.accountBilling, account),
|
path: createPath(pathsConfig.app.accountBilling, account),
|
||||||
Icon: <CreditCard className={iconClasses} />,
|
Icon: <Euro className={iconClasses} />,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
{
|
||||||
|
label: 'common:routes.companySettings',
|
||||||
|
path: createPath(pathsConfig.app.accountSettings, account),
|
||||||
|
Icon: <Settings className={iconClasses} />,
|
||||||
|
},
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user