mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
made boris use context
This commit is contained in:
parent
716e58bc15
commit
312156bdf8
5 changed files with 131 additions and 96 deletions
|
@ -1,6 +1,5 @@
|
|||
import React, { FC } from 'react';
|
||||
import { URLS } from '~/constants/urls';
|
||||
import { BorisLayout } from '~/layouts/BorisLayout';
|
||||
import { ErrorNotFound } from '~/containers/pages/ErrorNotFound';
|
||||
import { Redirect, Route, Switch, useLocation } from 'react-router';
|
||||
import { LabLayout } from '~/layouts/LabLayout';
|
||||
|
@ -8,6 +7,7 @@ import { useShallowSelect } from '~/utils/hooks/useShallowSelect';
|
|||
import { selectAuthUser } from '~/redux/auth/selectors';
|
||||
import { ProfileLayout } from '~/layouts/ProfileLayout';
|
||||
import FlowPage from '~/pages';
|
||||
import BorisPage from '~/pages/boris';
|
||||
import NodePage from '~/pages/node/[id]';
|
||||
|
||||
interface IProps {}
|
||||
|
@ -19,7 +19,7 @@ const MainRouter: FC<IProps> = () => {
|
|||
return (
|
||||
<Switch location={location}>
|
||||
<Route path={URLS.NODE_URL(':id')} component={NodePage} />
|
||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||
<Route path={URLS.BORIS} component={BorisPage} />
|
||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||
<Route path={URLS.PROFILE_PAGE(':username')} component={ProfileLayout} />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue