mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
#58 fixed lab navigation
This commit is contained in:
parent
6f09af1b36
commit
e5ed6361e6
1 changed files with 3 additions and 7 deletions
|
@ -22,14 +22,10 @@ const MainRouter: FC<IProps> = () => {
|
||||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||||
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfilePage} />
|
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfilePage} />
|
||||||
|
|
||||||
|
{is_user && <Route exact path={URLS.LAB} component={LabLayout} />}
|
||||||
|
|
||||||
<Route path={URLS.BASE} component={FlowLayout} />
|
<Route path={URLS.BASE} component={FlowLayout} />
|
||||||
|
|
||||||
{is_user && (
|
|
||||||
<>
|
|
||||||
<Route exact path={URLS.LAB} component={LabLayout} />
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Redirect to="/" />
|
<Redirect to="/" />
|
||||||
</Switch>
|
</Switch>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue