Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { get, post, put } from '../../utils/APIUtils'
- export function fetchNotifications() {
- return dispatch => {
- dispatch(fetchNotificationsRequest())
- // need to mock this get call
- return get('/notifications/self')
- .then(json => dispatch(fetchNotificationsSuccess(json.body)))
- .catch(err => dispatch(fetchNotificationsFailure(err)))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement