File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
colab-webapp/src/main/node/app/src/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import EditorWrapper from './projects/edition/EditorWrapper';
3535import NewModelShared from './projects/models/NewModelShared' ;
3636import SettingsTabs from './settings/SettingsTabs' ;
3737
38- export default function MainApp ( ) : JSX . Element {
38+ export default function MainApp ( ) : React . ReactElement {
3939 const dispatch = useAppDispatch ( ) ;
4040 const i18n = useTranslations ( ) ;
4141
@@ -141,7 +141,7 @@ export default function MainApp(): JSX.Element {
141141 < Route path = "/projects" element = { < MyProjects /> } />
142142 < Route path = "/models/*" element = { < MyModels /> } />
143143 < Route path = "/settings/*" element = { < SettingsTabs /> } />
144- < Route path = "/admin/*" element = { < AdminTabs /> } />
144+ { currentUser . admin && < Route path = "/admin/*" element = { < AdminTabs /> } /> }
145145 < Route path = "/bin/*" element = { < ProjectsBin /> } />
146146 { /* <Route path="/project/:projectId/*" element={<EditorWrapper />} /> */ }
147147 < Route
You can’t perform that action at this time.
0 commit comments