Added functionality to notifications page to scroll top on component mount

clears notification badge (unread count) on page open
This commit is contained in:
mgabdev 2019-07-09 00:19:03 -04:00
parent 451e5eaca0
commit 22eaad1846

View File

@ -64,6 +64,10 @@ class Notifications extends React.PureComponent {
this.props.dispatch(scrollTopNotifications(false));
}
componentDidMount() {
this.props.dispatch(scrollTopNotifications(true));
}
handleLoadGap = (maxId) => {
this.props.dispatch(expandNotifications({ maxId }));
};