mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added 404 page
This commit is contained in:
parent
f837924ad4
commit
f0acb1ee66
5 changed files with 53 additions and 3 deletions
|
@ -18,6 +18,7 @@ import { PageCover } from '~/components/containers/PageCover';
|
|||
import { NodeLayout } from './node/NodeLayout';
|
||||
import { BottomContainer } from '~/containers/main/BottomContainer';
|
||||
import { BorisLayout } from './node/BorisLayout';
|
||||
import { ErrorNotFound } from './pages/ErrorNotFound';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
modal: selectModal(state),
|
||||
|
@ -40,9 +41,9 @@ const Component: FC<IProps> = ({ modal: { is_shown } }) => {
|
|||
<Route exact path={URLS.BASE} component={FlowLayout} />
|
||||
<Route path={URLS.EXAMPLES.IMAGE} component={ImageExample} />
|
||||
<Route path={URLS.EXAMPLES.EDITOR} component={EditorExample} />
|
||||
<Route path="/examples/horizontal" component={HorizontalExample} />
|
||||
<Route path="/post:id" component={NodeLayout} />
|
||||
<Route path="/boris" component={BorisLayout} />
|
||||
<Route path={URLS.NODE_URL(':id')} component={NodeLayout} />
|
||||
<Route path={URLS.BORIS} component={BorisLayout} />
|
||||
<Route path={URLS.ERRORS.NOT_FOUND} component={ErrorNotFound} />
|
||||
|
||||
<Redirect to="/" />
|
||||
</Switch>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue