11import * as React from 'react' ;
22import { Route , Routes } from 'react-router-dom' ;
33import { NotFound } from './pages/notFound/NotFound' ;
4- import { Settings } from './pages/Settings/Settings ' ;
4+ import { Debug } from './pages/Debug/Debug ' ;
55import { Workspaces } from './pages/Workspaces/Workspaces' ;
66
77export const isNavDataGroup = ( navItem : NavDataItem ) : navItem is NavDataGroup =>
@@ -21,7 +21,7 @@ export type NavDataGroup = NavDataCommon & {
2121
2222type NavDataItem = NavDataHref | NavDataGroup ;
2323
24- export const useAdminSettings = ( ) : NavDataItem [ ] => {
24+ export const useAdminDebugSettings = ( ) : NavDataItem [ ] => {
2525 // get auth access for example set admin as true
2626 const isAdmin = true ; //this should be a call to getting auth / role access
2727
@@ -33,8 +33,8 @@ export const useAdminSettings = (): NavDataItem[] => {
3333
3434 return [
3535 {
36- label : 'Settings ' ,
37- children : [ { label : 'Notebooks' , path : '/notebookSettings ' } ] ,
36+ label : 'Debug ' ,
37+ children : [ { label : 'Notebooks' , path : '/notebookDebugSettings ' } ] ,
3838 } ,
3939 ] ;
4040} ;
@@ -44,7 +44,7 @@ export const useNavData = (): NavDataItem[] => [
4444 label : 'Notebooks' ,
4545 path : '/' ,
4646 } ,
47- ...useAdminSettings ( ) ,
47+ ...useAdminDebugSettings ( ) ,
4848] ;
4949
5050const AppRoutes : React . FC = ( ) => {
@@ -57,7 +57,7 @@ const AppRoutes: React.FC = () => {
5757 {
5858 // TODO: Remove the linter skip when we implement authentication
5959 // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
60- isAdmin && < Route path = "/notebookSettings /*" element = { < Settings /> } />
60+ isAdmin && < Route path = "/notebookDebugSettings /*" element = { < Debug /> } />
6161 }
6262 </ Routes >
6363 ) ;
0 commit comments