Skip to content

Instantly share code, notes, and snippets.

@agnanachandran
Created February 15, 2018 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agnanachandran/205da8d043394940c85f3071d8b3553e to your computer and use it in GitHub Desktop.
Save agnanachandran/205da8d043394940c85f3071d8b3553e to your computer and use it in GitHub Desktop.
views/notifications_view_container.tsx
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