mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
css grid to pack my layout
This commit is contained in:
parent
44e10599d7
commit
debb0640da
20 changed files with 1212 additions and 23 deletions
|
@ -6,30 +6,22 @@ import { SomeComponent } from '$components/SomeComponent';
|
|||
import { ConnectedRouter } from "connected-react-router";
|
||||
import { history } from "$redux/store";
|
||||
import { NavLink, Switch, Route } from 'react-router-dom';
|
||||
import { MainLayout } from "$containers/MainLayout";
|
||||
import { FlowLayout } from "$containers/FlowLayout";
|
||||
|
||||
interface IAppProps {}
|
||||
interface IAppState {}
|
||||
|
||||
class Component extends React.Component<IAppProps, IAppState> {
|
||||
state = { };
|
||||
|
||||
render() {
|
||||
return (
|
||||
<ConnectedRouter history={history}>
|
||||
<div>
|
||||
<div>
|
||||
<NavLink exact to="/" activeClassName="active">
|
||||
Root
|
||||
</NavLink>
|
||||
<NavLink to="/somepath" activeClassName="active">
|
||||
Something
|
||||
</NavLink>
|
||||
</div>
|
||||
<Switch>
|
||||
<Route
|
||||
exact
|
||||
path="/"
|
||||
component={SomeComponent}
|
||||
component={FlowLayout}
|
||||
/>
|
||||
<Route
|
||||
path="/somepath"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue