mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
started editor
This commit is contained in:
parent
7410376009
commit
e687a3f5f3
3 changed files with 50 additions and 5 deletions
|
@ -4,11 +4,12 @@ import { bindActionCreators } from 'redux';
|
|||
import { hot } from 'react-hot-loader';
|
||||
import { ConnectedRouter } from "connected-react-router";
|
||||
import { history } from "~/redux/store";
|
||||
import { NavLink, Switch, Route } from 'react-router-dom';
|
||||
import { NavLink, Switch, Route, Redirect } from 'react-router-dom';
|
||||
import { FlowLayout } from "~/containers/flow/FlowLayout";
|
||||
import { LoginLayout } from "~/containers/login/LoginLayout";
|
||||
import { MainLayout } from "~/containers/main/MainLayout";
|
||||
import { ImageExample } from "~/containers/examples/ImageExample";
|
||||
import { EditorExample } from "~/containers/examples/EditorExample";
|
||||
|
||||
interface IAppProps {}
|
||||
interface IAppState {}
|
||||
|
@ -20,12 +21,12 @@ class Component extends React.Component<IAppProps, IAppState> {
|
|||
<MainLayout>
|
||||
<Switch>
|
||||
<Route path="/examples/image" component={ImageExample} />
|
||||
<Route path="/examples/edit" component={EditorExample} />
|
||||
<Route path="/" component={FlowLayout} />
|
||||
|
||||
<Route
|
||||
path="/login"
|
||||
component={LoginLayout}
|
||||
/>
|
||||
<Route path="/login" component={LoginLayout} />
|
||||
|
||||
<Redirect to="/" />
|
||||
</Switch>
|
||||
</MainLayout>
|
||||
</ConnectedRouter>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue