export const acceptNotificationRequest = id => (dispatch, getState) => {
  dispatch(acceptNotificationRequestRequest(id));

  api(getState).post(`/api/v1/notifications/requests/${id}/accept`).then(() => {
    dispatch(acceptNotificationRequestSuccess(id));