equal
deleted
inserted
replaced
|
1 import React from 'react'; |
|
2 |
|
3 import DefaultLayout from './DefaultLayout'; |
|
4 import Sidebar from '../ui/Sidebar'; |
|
5 |
|
6 const DefaultLayoutSidebar = ({ |
|
7 component: Component, |
|
8 ...rest |
|
9 }) => ( |
|
10 <DefaultLayout |
|
11 {...rest} |
|
12 component={matchProps => ( |
|
13 <div className="row"> |
|
14 <div className="col col-3"> |
|
15 <Sidebar {...rest} /> |
|
16 </div> |
|
17 <div className="col col-9"> |
|
18 <Component {...matchProps} /> |
|
19 </div> |
|
20 </div> |
|
21 )} |
|
22 /> |
|
23 ); |
|
24 |
|
25 export default DefaultLayoutSidebar; |