Created
February 15, 2018 21:44
-
-
Save agnanachandran/205da8d043394940c85f3071d8b3553e to your computer and use it in GitHub Desktop.
views/notifications_view_container.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface NotificationsViewContainerProps { | |
notificationsStore: NotificationsStore; | |
} | |
@observer | |
class NotificationsViewContainer extends React.Component<NotificationsViewContainerProps, {}> { | |
render(): JSX.Element { | |
return ( | |
<NotificationsView | |
readNotifications={ this.props.notificationsStore.readNotifications } | |
unreadNotifications={ this.props.notificationsStore.unreadNotifications } | |
onMarkAsRead={ this.props.notificationsStore.markNotificationAsRead } | |
/> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment