File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import type { RouteObject } from 'react-router-dom' ;
44
5+ import { AdminSettingsPage } from './pages/AdminSettingsPage' ;
56import { CreateGroupPage } from './pages/CreateGroupPage' ;
67import { CreateUserPage } from './pages/CreateUserPage' ;
78import { ManageGroupsPage } from './pages/ManageGroupsPage' ;
@@ -35,6 +36,10 @@ export const adminRoute: RouteObject = {
3536 element : < CreateUserPage />
3637 }
3738 ]
39+ } ,
40+ {
41+ path : 'settings' ,
42+ element : < AdminSettingsPage />
3843 }
3944 ]
4045} ;
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ import { Heading } from '@douglasneuroinformatics/libui/components' ;
4+ import { useTranslation } from '@douglasneuroinformatics/libui/hooks' ;
5+
6+ import { PageHeader } from '@/components/PageHeader' ;
7+
8+ export const AdminSettingsPage = ( ) => {
9+ const { t } = useTranslation ( ) ;
10+ return (
11+ < React . Fragment >
12+ < PageHeader >
13+ < Heading className = "text-center" variant = "h2" >
14+ { t ( {
15+ en : 'Modify Instance Settings' ,
16+ fr : "Modifier les paramètres de l'instance"
17+ } ) }
18+ </ Heading >
19+ </ PageHeader >
20+ </ React . Fragment >
21+ ) ;
22+ } ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useTranslation } from '@douglasneuroinformatics/libui/hooks';
44import {
55 BarChartBigIcon ,
66 CirclePlayIcon ,
7+ CogIcon ,
78 ComputerIcon ,
89 DatabaseIcon ,
910 EyeIcon ,
@@ -67,6 +68,14 @@ export function useNavItems() {
6768
6869 const adminItems : NavItem [ ] = [ ] ;
6970 if ( currentUser ?. ability . can ( 'manage' , 'all' ) ) {
71+ adminItems . push ( {
72+ icon : CogIcon ,
73+ label : t ( {
74+ en : 'App Settings' ,
75+ fr : "Paramètres de l'application"
76+ } ) ,
77+ url : '/admin/settings'
78+ } ) ;
7079 adminItems . push ( {
7180 icon : UsersIcon ,
7281 label : t ( {
You can’t perform that action at this time.
0 commit comments