fix route focus check on publish page
This commit is contained in:
parent
380e11218c
commit
12cf390706
2 changed files with 2 additions and 1 deletions
|
@ -51,6 +51,7 @@ const Constants = {
|
||||||
DRAWER_ROUTE_TRENDING: 'Trending',
|
DRAWER_ROUTE_TRENDING: 'Trending',
|
||||||
DRAWER_ROUTE_SUBSCRIPTIONS: 'Subscriptions',
|
DRAWER_ROUTE_SUBSCRIPTIONS: 'Subscriptions',
|
||||||
DRAWER_ROUTE_MY_LBRY: 'Downloads',
|
DRAWER_ROUTE_MY_LBRY: 'Downloads',
|
||||||
|
DRAWER_ROUTE_PUBLISH: 'Publish',
|
||||||
DRAWER_ROUTE_REWARDS: 'Rewards',
|
DRAWER_ROUTE_REWARDS: 'Rewards',
|
||||||
DRAWER_ROUTE_WALLET: 'Wallet',
|
DRAWER_ROUTE_WALLET: 'Wallet',
|
||||||
DRAWER_ROUTE_SETTINGS: 'Settings',
|
DRAWER_ROUTE_SETTINGS: 'Settings',
|
||||||
|
|
|
@ -71,7 +71,7 @@ class PublishPage extends React.PureComponent {
|
||||||
const { currentRoute } = nextProps;
|
const { currentRoute } = nextProps;
|
||||||
const { currentRoute: prevRoute } = this.props;
|
const { currentRoute: prevRoute } = this.props;
|
||||||
|
|
||||||
if (Constants.DRAWER_ROUTE_REWARDS === currentRoute && currentRoute !== prevRoute) {
|
if (Constants.DRAWER_ROUTE_PUBLISH === currentRoute && currentRoute !== prevRoute) {
|
||||||
this.onComponentFocused();
|
this.onComponentFocused();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue