1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

return to fixed flow

This commit is contained in:
muerwre 2019-08-20 20:57:50 +07:00
parent 3d4f60c2b4
commit ad517a9bfe
5 changed files with 31 additions and 34 deletions

View file

@ -27,10 +27,11 @@ const Component: FC<IProps> = ({ is_shown }) => (
<Sprites />
<Switch>
<Route exact path={URLS.BASE} component={FlowLayout} />
<MainLayout>
<Switch>
<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} />

View file

@ -4,8 +4,5 @@ import * as styles from './styles.scss';
import { Header } from '~/components/main/Header';
export const FlowLayout = () => (
<div className={styles.wrap}>
<Header />
<TestGrid />
</div>
);

View file

@ -5,9 +5,9 @@ import { Header } from '~/components/main/Header';
export const MainLayout = ({ children }) => (
<div className={styles.wrapper}>
<Header />
<div className={styles.content}>
<Header />
{children}
</div>
</div>