From 848ac1eeab93f62b503ebcea2d63f4bd10193a57 Mon Sep 17 00:00:00 2001 From: Sailaja Adapa Date: Tue, 18 Jun 2024 17:35:21 +0530 Subject: [PATCH] Added Toastify --- src/pages/Rateus.jsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/pages/Rateus.jsx b/src/pages/Rateus.jsx index bbc4eb7..14ac6d8 100644 --- a/src/pages/Rateus.jsx +++ b/src/pages/Rateus.jsx @@ -1,4 +1,6 @@ import React, { useState } from 'react'; +import { ToastContainer, toast } from 'react-toastify'; +import 'react-toastify/dist/ReactToastify.css'; import Footer from "../components/Footer"; import Navbar from "../components/Navbar"; @@ -16,10 +18,9 @@ const RateUs = () => { const handleSubmit = () => { if (rating && feedback.trim() !== '') { - console.log('Rating:', rating); - console.log('Feedback:', feedback); + toast.success('Thank you for your feedback :)'); } else { - console.log("Please Fill All The Details :("); + toast.error('Please fill all the details :('); } }; @@ -67,6 +68,17 @@ const RateUs = () => {