Sha256: a553312ac32fb48d63351fff931fef89aac0ce81d1851310e82af992d48fb55e
Contents?: true
Size: 486 Bytes
Versions: 123
Compression:
Stored size: 486 Bytes
Contents
export const failureAction = (type, message = 'Request failed with status code 422') => ( { type, payload: { messages: [message], result: new Error(message), }, } ); export const toastErrorAction = (message = 'Request failed with status code 422') => ( { payload: { message: { message, sticky: true, type: 'error', }, }, type: 'TOASTS_ADD', } ); export default { failureAction, toastErrorAction, };
Version data entries
123 entries across 123 versions & 1 rubygems