feat: add toast notification on favorite button click

This commit is contained in:
Kentai Radiquum 2025-03-21 00:01:46 +05:00
parent f609de25f9
commit 60ece79df3
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 119 additions and 35 deletions

View file

@ -8,6 +8,7 @@ import { Button, Modal } from "flowbite-react";
import { Spinner } from "./components/Spinner/Spinner";
import { ChangelogModal } from "#/components/ChangelogModal/ChangelogModal";
import PlausibleProvider from "next-plausible";
import { Bounce, ToastContainer } from "react-toastify";
const inter = Inter({ subsets: ["latin"] });
@ -111,6 +112,19 @@ export const App = (props) => {
enabled={true}
/>
)}
<ToastContainer
position="bottom-center"
autoClose={5000}
hideProgressBar={false}
newestOnTop={true}
closeOnClick={true}
rtl={false}
pauseOnFocusLoss={false}
draggable={true}
pauseOnHover={true}
theme="colored"
transition={Bounce}
/>
</body>
);
};