File tree Expand file tree Collapse file tree 6 files changed +4
-8
lines changed Expand file tree Collapse file tree 6 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ const Routes = ({ state }: Props) => {
3939 }
4040 } )
4141
42- // TODO: refactor cond to user <Router><Route> and accept first route as if/else if
4342 return (
4443 < div style = { { ...styles . page , ...dimensions } } >
4544 < Router state = { state } >
Original file line number Diff line number Diff line change 11export function stateMatch ( state : any , statePath : string ) {
22 let current = state
3- let paths = statePath . split ( '.' )
3+ const paths = statePath . split ( '.' )
44 let complete = false
55 try {
66 for ( const p of paths ) {
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import Level from '../../components/Level'
44
55interface LevelProps {
66 send ( action : string ) : void
7- state : any
87}
98
109const LevelPage = ( props : LevelProps ) => {
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import DataContext from '../../utils/DataContext'
33import Stage from '../../components/Stage'
44
55interface PageProps {
6- state : any
76 send ( action : string ) : void
87}
98
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import Summary from '../../components/Summary'
44
55interface PageProps {
66 send ( action : string ) : void
7- state : any
87}
98
109const SummaryPage = ( props : PageProps ) => {
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ const Tutorial = (props: Props) => {
2020 < LoadingPage text = "Loading Tutorial..." />
2121 </ Route >
2222 < Route path = "Tutorial.Summary" >
23- < SummaryPage state = { props . state } send = { send } />
23+ < SummaryPage send = { send } />
2424 </ Route >
2525 < Route path = "Tutorial.Level" >
26- < LevelPage state = { props . state } send = { send } />
26+ < LevelPage send = { send } />
2727 </ Route >
2828 < Route path = "Tutorial.Stage" >
29- < StagePage state = { props . state } send = { send } />
29+ < StagePage send = { send } />
3030 </ Route >
3131 </ Router >
3232 )
You can’t perform that action at this time.
0 commit comments