mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
changed horizontal editor
This commit is contained in:
parent
393813ce4e
commit
4c20da6151
3 changed files with 38 additions and 47 deletions
|
@ -1,10 +1,10 @@
|
|||
import * as React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { hot } from 'react-hot-loader';
|
||||
import * as React from "react";
|
||||
import { connect } from "react-redux";
|
||||
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, Redirect } 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";
|
||||
|
@ -27,6 +27,7 @@ class Component extends React.Component<IAppProps, IAppState> {
|
|||
<Switch>
|
||||
<Route path={URLS.EXAMPLES.IMAGE} component={ImageExample} />
|
||||
<Route path={URLS.EXAMPLES.EDITOR} component={EditorExample} />
|
||||
<Route path="/examples/horizontal" component={HorizontalExample} />
|
||||
<Route exact path={URLS.BASE} component={FlowLayout} />
|
||||
|
||||
<Route path={URLS.AUTH.LOGIN} component={LoginLayout} />
|
||||
|
@ -39,7 +40,10 @@ class Component extends React.Component<IAppProps, IAppState> {
|
|||
}
|
||||
}
|
||||
|
||||
const mapStateToProps = (state, props) => ({ });
|
||||
const mapDispatchToProps = (dispatch) => bindActionCreators({}, dispatch);
|
||||
const mapStateToProps = (state, props) => ({});
|
||||
const mapDispatchToProps = dispatch => bindActionCreators({}, dispatch);
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(hot(module)(Component));
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(hot(module)(Component));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue