mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
cleaned profile page
This commit is contained in:
parent
2bd2ba079c
commit
4d73f18843
4 changed files with 35 additions and 58 deletions
|
@ -4,11 +4,11 @@ import { FlowLayout } from '~/layouts/FlowLayout';
|
|||
import { NodeLayout } from '~/layouts/NodeLayout';
|
||||
import { BorisLayout } from '~/layouts/BorisLayout';
|
||||
import { ErrorNotFound } from '~/containers/pages/ErrorNotFound';
|
||||
import { ProfilePage } from '~/containers/profile/ProfilePage';
|
||||
import { Redirect, Route, Switch, useLocation } from 'react-router';
|
||||
import { LabLayout } from '~/layouts/LabLayout';
|
||||
import { useShallowSelect } from '~/utils/hooks/useShallowSelect';
|
||||
import { selectAuthUser } from '~/redux/auth/selectors';
|
||||
import { ProfileLayout } from '~/layouts/ProfileLayout';
|
||||
|
||||
interface IProps {}
|
||||
|
||||
|
@ -21,7 +21,7 @@ const MainRouter: FC<IProps> = () => {
|
|||
<Route path={URLS.NODE_URL(':id')} component={NodeLayout} />
|
||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfilePage} />
|
||||
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfileLayout} />
|
||||
|
||||
{is_user && <Route path={URLS.LAB} component={LabLayout} />}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue