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

Commit783a0d6

Browse files
committed
fix link to routeToTutorials
1 parent0a47724 commit783a0d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/components/menu/menu.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ const origin = {horizontal: 'right', vertical: 'top'};
2222
dispatch(Action.setPage(position));
2323
dispatch(Action.setRoute('page'));
2424
},
25-
routeToProjects:()=>dispatch(Action.setRoute('projects')),
25+
routeToTutorials:()=>dispatch(Action.setRoute('tutorials')),
2626
quit:()=>{
2727
togglePanel();
2828
onDeactivate();
2929
}
3030
};
3131
})
3232
exportdefaultclassextendsReact.Component<{
33-
route:string,position:CR.Position,routeToProgress?:any,routeToPage?:any,routeToProjects?:any,quit?:any
33+
route:string,position:CR.Position,routeToProgress?:any,routeToPage?:any,routeToTutorials?:any,quit?:any
3434
},{}>{
3535
navOptions():React.ReactElement<{}>{
3636
const{routeToProgress, routeToPage}=this.props;
@@ -44,17 +44,17 @@ export default class extends React.Component<{
4444
}
4545
}
4646
menuOptions(){
47-
const{routeToProgress,routeToProjects}=this.props;
47+
const{routeToProgress,routeToTutorials}=this.props;
4848
switch(this.props.route){
4949
case'final':
5050
case'page':
5151
return(
5252
<div>
5353
<MenuItemprimaryText='progress'onTouchTap={routeToProgress}key='progress'/>
54-
<MenuItemprimaryText='projects'onTouchTap={routeToProjects}key='projects'/>
54+
<MenuItemprimaryText='tutorials'onTouchTap={routeToTutorials}key='projects'/>
5555
</div>);
5656
case'progress':
57-
return<MenuItemprimaryText='projects'onTouchTap={routeToProjects}key='projects'/>;
57+
return<MenuItemprimaryText='tutorials'onTouchTap={routeToTutorials}key='projects'/>;
5858
default:returnnull;
5959
}
6060
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp