fix references to FULL_ROUTE_NAME_TRENDING
This commit is contained in:
1 parent
8fc179cbde
commit
580f879d0e
3 files changed
+3
-3
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user