2020-08-05 23:24:20 -05:00
|
|
|
export const TOAST_SHOW = 'TOAST_SHOW'
|
|
|
|
export const TOAST_DISMISS = 'TOAST_DISMISS'
|
|
|
|
export const TOAST_CLEAR = 'TOAST_CLEAR'
|
|
|
|
|
2020-11-15 12:48:32 -06:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2020-12-07 23:39:13 -05:00
|
|
|
export const dismissToast = (toastKey) => ({
|
2020-11-15 12:48:32 -06:00
|
|
|
type: TOAST_DISMISS,
|
2020-12-07 23:39:13 -05:00
|
|
|
toastKey,
|
2020-11-15 12:48:32 -06:00
|
|
|
})
|
2020-08-05 23:24:20 -05:00
|
|
|
|
2020-11-15 12:48:32 -06:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
export const clearToast = () => ({
|
|
|
|
type: TOAST_CLEAR,
|
|
|
|
})
|
2020-08-05 23:24:20 -05:00
|
|
|
|
2020-11-15 12:48:32 -06:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2020-12-07 23:39:13 -05:00
|
|
|
export const showToast = (toastType, toastData) => ({
|
2020-11-15 12:48:32 -06:00
|
|
|
type: TOAST_SHOW,
|
2020-12-07 23:39:13 -05:00
|
|
|
toastType,
|
|
|
|
toastData,
|
2020-11-15 12:48:32 -06:00
|
|
|
})
|