added toust and cleaned code

This commit is contained in:
IO420
2025-10-01 15:29:23 -06:00
parent ac43d6a1ff
commit b1165c8e70
34 changed files with 152 additions and 479 deletions
+14
View File
@@ -0,0 +1,14 @@
"use client";
import { useEffect } from "react";
import toast from "react-hot-toast";
export default function ShowError({ message }: { message: string }) {
useEffect(() => {
if (message) {
toast.error(message);
}
}, [message]);
return null;
}