Replace redwood flash with toaster
https://community.redwoodjs.com/t/redwood-flash-is-being-replaced-with-react-hot-toast-how-to-update-your-project-v0-27-0/1921 Resolves #326.
This commit is contained in:
@@ -7,9 +7,7 @@ export const subscribe = ({ email, addMessage }) => {
|
||||
)
|
||||
} catch (e) {
|
||||
setTimeout(() => {
|
||||
addMessage('Problem subscribing to newsletter', {
|
||||
classes: 'bg-red-300 text-red-900',
|
||||
})
|
||||
addMessage('Problem subscribing to newsletter')
|
||||
}, 1000)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user