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