You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then in a function, I do something like this:
const handleSubmit = async (e) => {
e.preventDefault();
setError("");
try {
await createUser(email, password);
registeredMessage();
} catch (e) {
setError(e.message);
console.log(e.message);
}
};
But Next.js require to use Image component to show an image. So, how can I include a image in the alert? Sorry if it doesn't have the right style, it is my first question in GitHub.
Thanks.
#sweetAlert2 #Next
The text was updated successfully, but these errors were encountered:
I am trying to use sweetalert2 with Next.js. When I used React I used to do this:
const registeredMessage = () => {
Swal.fire({
imageUrl: logo,
imageHeight: 150,
imageWidth: 200,
imageAlt: "Thanks for registering.",
title: "NEXT EVENT",
html: "
Now you will receive updates with all our events.
",footer: "
Thanks for register.
",});
};
Then in a function, I do something like this:
const handleSubmit = async (e) => {
e.preventDefault();
setError("");
try {
await createUser(email, password);
registeredMessage();
} catch (e) {
setError(e.message);
console.log(e.message);
}
};
But Next.js require to use Image component to show an image. So, how can I include a image in the alert? Sorry if it doesn't have the right style, it is my first question in GitHub.
Thanks.
#sweetAlert2 #Next
The text was updated successfully, but these errors were encountered: