Commiting

This commit is contained in:
mgabdev
2020-11-15 12:48:32 -06:00
parent 62515bbaee
commit fb612f60c8
1011 changed files with 3507 additions and 49604 deletions

View File

@@ -7,26 +7,29 @@ export const TOAST_SHOW = 'TOAST_SHOW'
export const TOAST_DISMISS = 'TOAST_DISMISS'
export const TOAST_CLEAR = 'TOAST_CLEAR'
export function dismissToast(alert) {
return {
type: TOAST_DISMISS,
alert,
}
}
/**
*
*/
export const dismissToast = (alert) => ({
type: TOAST_DISMISS,
alert,
})
export function clearToast() {
return {
type: TOAST_CLEAR,
}
}
/**
*
*/
export const clearToast = () => ({
type: TOAST_CLEAR,
})
function showToast(type, message) {
return {
type: TOAST_SHOW,
toastType: type,
message,
}
}
/**
*
*/
export const showToast = (type, message) => ({
type: TOAST_SHOW,
toastType: type,
message,
})
export const showToastError = (message) => {
return showToast(TOAST_TYPE_ERROR, message)