diff --git a/src/App.jsx b/src/App.jsx index 3ca37a1..6aa4a59 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -37,7 +37,18 @@ const App = () => { } /> } /> - + ); diff --git a/src/service/api.tsx b/src/service/api.tsx index 08506ac..706d213 100644 --- a/src/service/api.tsx +++ b/src/service/api.tsx @@ -1,4 +1,5 @@ import { getAuth } from 'firebase/auth'; +import {Bounce, toast} from "react-toastify"; const apiUrl: string = 'https://www.servii.fr/api'; @@ -68,6 +69,17 @@ class serviiApi { } return { return_code: status, message: json }; } + toast.info(json.message, { + position: "top-center", + autoClose: 2500, + hideProgressBar: false, + closeOnClick: true, + pauseOnHover: true, + draggable: true, + progress: undefined, + theme: "colored", + transition: Bounce, + }); return { return_code: status, message: json.message }; }