Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4198aa8

Browse files
committed
cleanup routes
1 parent5204ac6 commit4198aa8

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

‎web-app/src/Routes.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
<divstyle={{ ...styles.page, ...dimensions}}>
4544
<Routerstate={state}>

‎web-app/src/components/Cond/utils/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exportfunctionstateMatch(state:any,statePath:string){
22
letcurrent=state
3-
letpaths=statePath.split('.')
3+
constpaths=statePath.split('.')
44
letcomplete=false
55
try{
66
for(constpofpaths){

‎web-app/src/containers/Tutorial/LevelPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Level from '../../components/Level'
44

55
interfaceLevelProps{
66
send(action:string):void
7-
state:any
87
}
98

109
constLevelPage=(props:LevelProps)=>{

‎web-app/src/containers/Tutorial/StagePage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import DataContext from '../../utils/DataContext'
33
importStagefrom'../../components/Stage'
44

55
interfacePageProps{
6-
state:any
76
send(action:string):void
87
}
98

‎web-app/src/containers/Tutorial/SummaryPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Summary from '../../components/Summary'
44

55
interfacePageProps{
66
send(action:string):void
7-
state:any
87
}
98

109
constSummaryPage=(props:PageProps)=>{

‎web-app/src/containers/Tutorial/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ const Tutorial = (props: Props) => {
2020
<LoadingPagetext="Loading Tutorial..."/>
2121
</Route>
2222
<Routepath="Tutorial.Summary">
23-
<SummaryPagestate={props.state}send={send}/>
23+
<SummaryPagesend={send}/>
2424
</Route>
2525
<Routepath="Tutorial.Level">
26-
<LevelPagestate={props.state}send={send}/>
26+
<LevelPagesend={send}/>
2727
</Route>
2828
<Routepath="Tutorial.Stage">
29-
<StagePagestate={props.state}send={send}/>
29+
<StagePagesend={send}/>
3030
</Route>
3131
</Router>
3232
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp