Skip to content

Instantly share code, notes, and snippets.

@agnanachandran
Created February 15, 2018 21:44
Show Gist options
  • Select an option

  • Save agnanachandran/205da8d043394940c85f3071d8b3553e to your computer and use it in GitHub Desktop.

Select an option

Save agnanachandran/205da8d043394940c85f3071d8b3553e to your computer and use it in GitHub Desktop.

Revisions

  1. agnanachandran created this gist Feb 15, 2018.
    16 changes: 16 additions & 0 deletions notifications_view_container.tsx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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 }
    />
    );
    }
    }