From 27c0efe05852b0b69285cd6aa513226229b35cb8 Mon Sep 17 00:00:00 2001 From: Tamannatanwa Date: Wed, 3 Jul 2024 11:15:48 +0530 Subject: [PATCH] When profile edit is successful, a message will be displayed. --- src/pages/Profile/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/Profile/index.js b/src/pages/Profile/index.js index 24b9d0eb3..256af660d 100644 --- a/src/pages/Profile/index.js +++ b/src/pages/Profile/index.js @@ -39,6 +39,7 @@ import { useParams, useHistory } from "react-router-dom"; import UnlockOpportunities from "./UnlockOpportunities"; import LastLoginTime from "./LastLoginTime/LastLoginTime"; +import { toast } from "react-toastify"; const firebaseConfig = { apiKey: process.env.REACT_APP_API_KEY, @@ -253,6 +254,9 @@ function Profile() { dispatch(actions.onUserRefreshDataIntent({ token: user.data.token })); setMsg(false); setUserData(res.data.user); + toast.success(`Profile Updated Successfully`, { + position: toast.POSITION.BOTTOM_RIGHT, + }); }) .catch((err) => {}); };