UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

16 lines (12 loc) 340 B
import constants from '../constants'; const unauthorizedRequest = () => ({ type: constants.generic.UNAUTHORIZED_REQUEST, }); export function unauthorized(dispatch, action) { return (resp) => { if (resp.response && resp.response.status === 401) { dispatch(unauthorizedRequest()); } return dispatch(action()); }; }