Revert "Unify workspace dropdowns; Update layouts (#458)"
This reverts commit 4bc8448a1d.
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
BorderedNavigationMenu,
|
||||
BorderedNavigationMenuItem,
|
||||
} from '@kit/ui/bordered-navigation-menu';
|
||||
|
||||
import pathsConfig from '~/config/paths.config';
|
||||
|
||||
export function SettingsSubNavigation(props: { account: string }) {
|
||||
const settingsPath = pathsConfig.app.accountSettings.replace(
|
||||
'[account]',
|
||||
props.account,
|
||||
);
|
||||
|
||||
const profilePath = pathsConfig.app.accountProfileSettings.replace(
|
||||
'[account]',
|
||||
props.account,
|
||||
);
|
||||
|
||||
return (
|
||||
<BorderedNavigationMenu>
|
||||
<BorderedNavigationMenuItem
|
||||
path={settingsPath}
|
||||
label={'common.routes.settings'}
|
||||
highlightMatch={`/home/${props.account}/settings$`}
|
||||
/>
|
||||
|
||||
<BorderedNavigationMenuItem
|
||||
path={profilePath}
|
||||
label={'common.routes.profile'}
|
||||
/>
|
||||
</BorderedNavigationMenu>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user