delete all toast and modified botton add equipo
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
import toast from "react-hot-toast";
|
||||
import Swal from "sweetalert2";
|
||||
|
||||
export default function ShowError({ message }: { message: string }) {
|
||||
useEffect(() => {
|
||||
if (message) {
|
||||
toast.error(message);
|
||||
Swal.fire({
|
||||
title: message,
|
||||
icon: "error",
|
||||
draggable: true,
|
||||
});
|
||||
}
|
||||
}, [message]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user