author | ymh <ymh.work@gmail.com> |
Mon, 17 Sep 2018 01:35:46 +0200 | |
changeset 4 | df751568fda6 |
parent 0 | 5f4fcbc80b37 |
child 17 | c2c97df0a642 |
permissions | -rw-r--r-- |
import React from 'react'; import DefaultLayout from './DefaultLayout'; import Sidebar from '../ui/Sidebar'; const DefaultLayoutSidebar = ({ component: Component, ...rest }) => ( <DefaultLayout {...rest} component={matchProps => ( <div className="row"> <div className="col col-3"> <Sidebar {...rest} /> </div> <div className="col col-9"> <Component {...matchProps} /> </div> </div> )} /> ); export default DefaultLayoutSidebar;