Skip to content

Commit 81150fe

Browse files
committed
fix menu links
1 parent b357c38 commit 81150fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/menu/menu.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export class MenuLink extends React.Component<{
2424
route: string, title?: string, routeTo?: any
2525
}, {}> {
2626
render() {
27-
const {route, title} = this.props;
28-
return <MenuItem primaryText={title ? title : route} onTouchTap={this.props.routeTo.bind(route)} key={route}/>;
27+
const {route, title, routeTo} = this.props;
28+
console.log(route);
29+
return <MenuItem primaryText={title ? title : route} onTouchTap={routeTo.bind(this, route)} key={route}/>;
2930
}
3031
}
3132

3233
@connect(null, (dispatch) => {
3334
return {
34-
routeToProgress: () => dispatch(setRoute('progress')),
3535
routeToPage: () => {
3636
const position = this.props.position;
3737
dispatch(setPage(position));

0 commit comments

Comments
 (0)