fix references to FULL_ROUTE_NAME_TRENDING
This commit is contained in:
parent
8fc179cbde
commit
580f879d0e
3 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@ class ClaimList extends React.PureComponent {
|
|||
if (tags.length === 1) {
|
||||
navigation.navigate({ routeName: Constants.DRAWER_ROUTE_TAG, key: 'tagPage', params: { tag: tags[0] } });
|
||||
} else {
|
||||
navigation.navigate({ routeName: Constants.FULL_ROUTE_NAME_TRENDING });
|
||||
navigation.navigate({ routeName: Constants.DRAWER_ROUTE_TRENDING });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ class DiscoverPage extends React.PureComponent {
|
|||
});
|
||||
} else {
|
||||
// navigate to the trending page
|
||||
navigation.navigate({ routeName: Constants.FULL_ROUTE_NAME_TRENDING });
|
||||
navigation.navigate({ routeName: Constants.DRAWER_ROUTE_TRENDING });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ class TrendingPage extends React.PureComponent {
|
|||
componentWillReceiveProps(nextProps) {
|
||||
const { currentRoute } = nextProps;
|
||||
const { currentRoute: prevRoute } = this.props;
|
||||
if (Constants.FULL_ROUTE_NAME_TRENDING === currentRoute && currentRoute !== prevRoute) {
|
||||
if (Constants.DRAWER_ROUTE_TRENDING === currentRoute && currentRoute !== prevRoute) {
|
||||
this.onComponentFocused();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue