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.

28 lines (24 loc) 675 B
import { push } from '../helpers/actions'; export const pushAction = (type, extra) => { return (dispatch, getState) => { const state = getState(); if ( state.user.currentUser && state.user.currentUser.client && state.user.currentUser.client.Email && state.organization.currentOrganization && state.organization.currentOrganization.ClientId ) { const userName = state.user.currentUser.client.Email; const orgName = state.organization.currentOrganization.ClientId; if (orgName && userName) { push({ type, extra, userName, orgName, }); } } } };