Added click to refresh on Home and Notifications

• Added:
- click to refresh on Home and Notifications... If click on notifications or home button, it refreshes the data
This commit is contained in:
mgabdev
2020-06-10 17:44:38 -04:00
parent 8ba98c5192
commit 4e72076b98
4 changed files with 93 additions and 21 deletions

View File

@@ -114,6 +114,14 @@ export function updateNotificationsQueue(notification, intlMessages, intlLocale,
}
};
export function forceDequeueNotifications() {
return (dispatch,) => {
dispatch({
type: NOTIFICATIONS_DEQUEUE,
})
}
}
export function dequeueNotifications() {
return (dispatch, getState) => {
const queuedNotifications = getState().getIn(['notifications', 'queuedNotifications'], ImmutableList());