17 lines
320 B
TypeScript
17 lines
320 B
TypeScript
|
|
import { ReduxActionTypes } from "constants/ReduxActionConstants";
|
||
|
|
|
||
|
|
export const flushErrors = () => {
|
||
|
|
return {
|
||
|
|
type: ReduxActionTypes.FLUSH_ERRORS,
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
export const flushErrorsAndRedirect = (url: string) => {
|
||
|
|
return {
|
||
|
|
type: ReduxActionTypes.FLUSH_AND_REDIRECT,
|
||
|
|
payload: {
|
||
|
|
url,
|
||
|
|
},
|
||
|
|
};
|
||
|
|
};
|