File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react' ;
2
+ import { ToastContainer , toast } from 'react-toastify' ;
3
+ import 'react-toastify/dist/ReactToastify.css' ;
2
4
import Footer from "../components/Footer" ;
3
5
import Navbar from "../components/Navbar" ;
4
6
@@ -16,10 +18,9 @@ const RateUs = () => {
16
18
17
19
const handleSubmit = ( ) => {
18
20
if ( rating && feedback . trim ( ) !== '' ) {
19
- console . log ( 'Rating:' , rating ) ;
20
- console . log ( 'Feedback:' , feedback ) ;
21
+ toast . success ( 'Thank you for your feedback :)' ) ;
21
22
} else {
22
- console . log ( " Please Fill All The Details :(" ) ;
23
+ toast . error ( ' Please fill all the details :(' ) ;
23
24
}
24
25
} ;
25
26
@@ -67,6 +68,17 @@ const RateUs = () => {
67
68
</ div >
68
69
</ div >
69
70
< Footer />
71
+ < ToastContainer
72
+ position = "top-center"
73
+ autoClose = { 5000 }
74
+ hideProgressBar = { false }
75
+ newestOnTop = { false }
76
+ closeOnClick
77
+ rtl = { false }
78
+ pauseOnFocusLoss
79
+ draggable
80
+ pauseOnHover
81
+ />
70
82
</ div >
71
83
) ;
72
84
} ;
You can’t perform that action at this time.
0 commit comments