File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import Box from "../Box" ;
3
+ import { css } from "emotion" ;
4
+ import faker from "faker" ;
5
+ import { getLorem } from "../../util/common" ;
6
+
7
+ const tileStyles = css ( {
8
+ display : "flex" ,
9
+ alignItems : "center" ,
10
+ margin : 4 ,
11
+ "& > *" : {
12
+ margin : 4 ,
13
+ } ,
14
+ } ) ;
15
+
16
+ const small = css ( {
17
+ fontSize : 10 ,
18
+ } ) ;
19
+
20
+ const Tile = ( ) => (
21
+ < div className = { tileStyles } >
22
+ < Box icon black />
23
+ < section >
24
+ < div > { faker . name . firstName ( ) } </ div >
25
+ < div className = { small } > { getLorem ( 2 , 3 ) } </ div >
26
+ </ section >
27
+ </ div >
28
+ ) ;
29
+
30
+ export default Tile ;
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
+ import Tile from "./Tile" ;
2
3
3
- const RightSidebar = ( ) => < aside > Right Sidebar</ aside > ;
4
+ const TILES = 30 ;
5
+
6
+ const RightSidebar = ( ) => (
7
+ < aside > { new Array ( TILES ) . fill ( 0 ) . map ( ( e , i ) => < Tile key = { i } /> ) } </ aside >
8
+ ) ;
4
9
5
10
export default RightSidebar ;
You can’t perform that action at this time.
0 commit comments