feat: add data model settings (#1817)

Closes #1760
This commit is contained in:
Thaïs
2023-10-03 11:19:29 +02:00
committed by GitHub
parent 1e91c985df
commit e63f8eac76
7 changed files with 86 additions and 7 deletions

View File

@ -5,6 +5,7 @@ import { useAuth } from '@/auth/hooks/useAuth';
import { AppPath } from '@/types/AppPath';
import {
IconColorSwatch,
IconHierarchy2,
IconLogout,
IconSettings,
IconUserCircle,
@ -72,6 +73,17 @@ export const SettingsNavbar = () => {
})
}
/>
<NavItem
label="Data model"
to="/settings/objects"
Icon={IconHierarchy2}
active={
!!useMatch({
path: useResolvedPath('/settings/objects').pathname,
end: true,
})
}
/>
<NavTitle label="Other" />
<NavItem label="Logout" onClick={handleLogout} Icon={IconLogout} />
</SubMenuNavbar>

View File

@ -1,6 +1,7 @@
export enum SettingsPath {
ProfilePage = 'profile',
Experience = 'profile/experience',
Objects = 'objects',
WorkspaceMembersPage = 'workspace-members',
Workspace = 'workspace',
}

View File

@ -43,6 +43,7 @@ export {
IconHeart,
IconHeartOff,
IconHelpCircle,
IconHierarchy2,
IconInbox,
IconLayoutKanban,
IconLayoutSidebarLeftCollapse,