From 73510d9920e8a9931732c208670b5d1ffa8cf01d Mon Sep 17 00:00:00 2001 From: sunny Date: Wed, 19 Jul 2017 19:09:29 +0900 Subject: [PATCH] layout --- src/ts/containers/test/layout/Header.tsx | 2 - src/ts/containers/test/layout/Layout.tsx | 44 ++++++++++------------ src/ts/containers/test/layout/LeftMenu.tsx | 2 +- src/ts/containers/test/layout/TitleBar.tsx | 42 +++++++++------------ 4 files changed, 38 insertions(+), 52 deletions(-) diff --git a/src/ts/containers/test/layout/Header.tsx b/src/ts/containers/test/layout/Header.tsx index 2adb7d4..c20b499 100644 --- a/src/ts/containers/test/layout/Header.tsx +++ b/src/ts/containers/test/layout/Header.tsx @@ -16,9 +16,7 @@ export class Header extends React.Component { return ( - - // ); diff --git a/src/ts/containers/test/layout/Layout.tsx b/src/ts/containers/test/layout/Layout.tsx index decd14d..a39ff37 100644 --- a/src/ts/containers/test/layout/Layout.tsx +++ b/src/ts/containers/test/layout/Layout.tsx @@ -15,41 +15,35 @@ export class Layout extends React.Component { constructor(props: any, context: any) { super(props, context); this.state = { + sidebar_visible: true, notification_visible: false, }; } onSidebar = () => { - this.setState({ notification_visible: !this.state.notification_visible }); + this.setState({ notification_visible: !this.state.notification_visible, sidebar_visible: !this.state.sidebar_visible }); } render() { return ( - - - - - - - - -
- - - - - - - - - -