File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react'
2+ import * as TT from 'typings/tutorial'
3+ import Content from '../components/Content'
4+
5+ interface Props {
6+ levels : TT . Level [ ]
7+ }
28
39const styles = {
410 container : {
511 padding : '1rem' ,
12+ display : 'flex' as 'flex' ,
13+ flexDirection : 'column' as 'column' ,
614 } ,
715}
816
9- const ReviewPage = ( ) => {
10- return < div css = { styles . container } > Review Coming soon...</ div >
17+ const ReviewPage = ( props : Props ) => {
18+ return (
19+ < div css = { styles . container } >
20+ { props . levels . map ( ( level : TT . Level ) => (
21+ < div >
22+ < Content title = { level . title } content = { level . content } />
23+ </ div >
24+ ) ) }
25+ </ div >
26+ )
1127}
1228
1329export default ReviewPage
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const TutorialPage = (props: PageProps) => {
136136 />
137137 ) }
138138 { page === 'settings' && < SettingsPage /> }
139- { page === 'review' && < ReviewPage /> }
139+ { page === 'review' && < ReviewPage levels = { tutorial . levels } /> }
140140 </ div >
141141 < div css = { styles . footer } >
142142 { /* Process Modal */ }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const level = {
2323 steps : [
2424 {
2525 id : '1.1' ,
26- content : 'Should support markdown test\n ```shell\nnpn install some-packagen ```\nwhew it works!' ,
26+ content : 'Should support markdown test\n ```shell\nnpn install some-package\n ```\nwhew it works!' ,
2727 setup : {
2828 commits : [ 'abcdefg' ] ,
2929 } ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const context: Partial<T.MachineContext> = {
4949 steps : [
5050 {
5151 id : '1.1' ,
52- content : 'Should support markdown test\n ```shell\nnpn install some-packagen ```\nwhew it works!' ,
52+ content : 'Should support markdown test\n ```shell\nnpn install some-package\n ```\nwhew it works!' ,
5353 setup : {
5454 commits : [ 'abcdefg' ] ,
5555 } ,
You can’t perform that action at this time.
0 commit comments