fix references to FULL_ROUTE_NAME_TRENDING

This commit is contained in:
Akinwale Ariwodola 2019-08-15 10:09:26 +01:00
parent 8fc179cbde
commit 580f879d0e
3 changed files with 3 additions and 3 deletions

View file

@ -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 });
}
};

View file

@ -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 });
}
};

View file

@ -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();
}
}