adding toast working with the correct downgraded react version

learned a lot about versioning and paying attention to detail when debugging
This commit is contained in:
talksik
2022-04-19 06:42:09 -05:00
parent cabf8052ca
commit a65aae0634
4 changed files with 30 additions and 35 deletions
+2 -4
View File
@@ -1,16 +1,14 @@
import FullMottoLogo from "../../../components/logo/fullMotto";
import { toast } from "react-toastify";
import { useCallback } from "react";
import useNirvanaToast from "../providers/toastProvider";
const contactEmailAddress = "[email protected]";
export default function Footer() {
const toast = useNirvanaToast();
const copyToClipboard = useCallback(() => {
navigator.clipboard.writeText(contactEmailAddress);
toast.handleOpen("success", "copied to clipboard");
toast.success("copied to clipboard");
}, []);
return (