Added functionality to notifications page to scroll top on component mount
clears notification badge (unread count) on page open
This commit is contained in:
parent
451e5eaca0
commit
22eaad1846
@ -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 }));
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user