File tree Expand file tree Collapse file tree 3 files changed +27
-15
lines changed
web-app/src/containers/Tutorial Expand file tree Collapse file tree 3 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react'
2
- import * as T from 'typings'
3
2
import * as TT from 'typings/tutorial'
4
3
import Steps from '../components/Steps'
5
4
import Content from '../components/Content'
@@ -13,23 +12,35 @@ const styles = {
13
12
display : 'flex' as 'flex' ,
14
13
flexDirection : 'column' as 'column' ,
15
14
} ,
15
+ header : {
16
+ display : 'flex' as 'flex' ,
17
+ alignItems : 'center' ,
18
+ justifyContent : 'flex-start' ,
19
+ height : '2rem' ,
20
+ backgroundColor : '#EBEBEB' ,
21
+ fontSize : '1rem' ,
22
+ lineHeight : '1rem' ,
23
+ padding : '10px 0.4rem' ,
24
+ } ,
25
+ title : {
26
+ marginLeft : '0.5rem' ,
27
+ } ,
16
28
}
17
29
18
30
const ReviewPage = ( props : Props ) => {
19
31
return (
20
32
< div css = { styles . container } >
21
- { props . levels . map ( ( level : TT . Level , index : number ) => {
22
- return (
23
- < >
24
- < div >
25
- < Content title = { level . title } content = { level . content } />
26
- < Steps steps = { level . steps } />
27
- </ div >
28
- { /* divider */ }
29
- { index < props . levels . length - 1 ? < hr /> : null }
30
- </ >
31
- )
32
- } ) }
33
+ < div css = { styles . header } > Review</ div >
34
+ { props . levels . map ( ( level : TT . Level , index : number ) => (
35
+ < div key = { level . id } >
36
+ < div >
37
+ < Content title = { level . title } content = { level . content } />
38
+ < Steps steps = { level . steps } />
39
+ </ div >
40
+ { /* divider */ }
41
+ { index < props . levels . length - 1 ? < hr /> : null }
42
+ </ div >
43
+ ) ) }
33
44
</ div >
34
45
)
35
46
}
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import * as React from 'react'
2
2
3
3
const styles = {
4
4
container : {
5
+ display : 'flex' as 'flex' ,
6
+ flexDirection : 'column' as 'column' ,
5
7
padding : '1rem' ,
6
8
} ,
7
9
}
Original file line number Diff line number Diff line change 1
1
import * as React from 'react'
2
2
import * as T from 'typings'
3
- import * as TT from 'typings/tutorial'
4
3
import * as selectors from '../../services/selectors'
5
4
import SideMenu from './components/SideMenu'
6
5
import Level from './components/Level'
@@ -154,7 +153,7 @@ const TutorialPage = (props: PageProps) => {
154
153
{ /* Right */ }
155
154
< div >
156
155
{ level . status === 'COMPLETE' || ! level . steps . length ? (
157
- < Button type = "primary" onClick = { onContinue } >
156
+ < Button style = { { marginRight : '1rem' } } type = "primary" onClick = { onContinue } >
158
157
Continue
159
158
</ Button >
160
159
) : (
You can’t perform that action at this time.
0 commit comments