mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-17 11:11:21 +08:00
Fix notifications screen on mobile
This commit is contained in:
@@ -19,12 +19,9 @@ export default class NotificationsScreen extends PureComponent<
|
||||
return (
|
||||
<Screen>
|
||||
<UserConsumer>
|
||||
{({ user }) =>
|
||||
!(user && user.accessToken) ? null : (
|
||||
<NotificationCardsContainer
|
||||
accessToken={user.accessToken}
|
||||
swipeable
|
||||
/>
|
||||
{({ accessToken }) =>
|
||||
!!accessToken && (
|
||||
<NotificationCardsContainer accessToken={accessToken} swipeable />
|
||||
)
|
||||
}
|
||||
</UserConsumer>
|
||||
|
||||
Reference in New Issue
Block a user