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:
parent
3d4f60c2b4
commit
ad517a9bfe
5 changed files with 31 additions and 34 deletions
|
@ -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} />
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue