1
0
Fork 0
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:
Fedor Katurov 2021-03-30 11:45:51 +07:00
parent 6f09af1b36
commit e5ed6361e6

View file

@ -22,14 +22,10 @@ const MainRouter: FC<IProps> = () => {
<Route path={URLS.BORIS} component={BorisLayout} />
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfilePage} />
{is_user && <Route exact path={URLS.LAB} component={LabLayout} />}
<Route path={URLS.BASE} component={FlowLayout} />
{is_user && (
<>
<Route exact path={URLS.LAB} component={LabLayout} />
</>
)}
<Redirect to="/" />
</Switch>
);