diff --git a/embark-ui/src/components/Layout.js b/embark-ui/src/components/Layout.js index 773270390..b47033be2 100644 --- a/embark-ui/src/components/Layout.js +++ b/embark-ui/src/components/Layout.js @@ -63,10 +63,6 @@ const getSidebar = (location) => { return currentItem && SIDEBAR_NAV_ITEMS[currentItem]; } -function searchTheExplorer(_value) { - // TODO: search -} - class Layout extends React.Component { constructor(props) { super(props); @@ -105,8 +101,72 @@ class Layout extends React.Component { this.setState({loading: true}); } + renderNav() { + return (); + } + + renderRightNav() { + const searchResult = this.props.searchResult; + return (); + } + + renderSettings() { + const {logout, toggleTheme, currentTheme} = this.props; + + return ( + + + + + toggleTheme()}> + + {currentTheme === DARK_THEME ? LIGHT_THEME : DARK_THEME} Mode + + Logout + + ); + } + + renderSideBar() { + return ( + + + + + + ); + } + + renderFooter() { + return ( + + Embark  + Documentation +  |  + Github + + ); + } + render() { - const {children, logout, location, toggleTheme, currentTheme, searchResult} = this.props; + const {children} = this.props; return (
@@ -116,63 +176,23 @@ class Layout extends React.Component { minimized={{ src: logo, width: 30, height: 30, alt: 'Embark Logo' }} /> - - + {this.renderNav()} + + {this.renderRightNav()} +
- {sidebar && - - - - - - - - } + {this.renderSideBar()} +
{children}
- -
- - - Embark  - Documentation -  |  - Github - - + + {this.renderFooter()}
); } }