diff --git a/src/components/ReviewDialog/ReviewDialog.js b/src/components/ReviewDialog/ReviewDialog.js
index ee72d40..6b7f311 100644
--- a/src/components/ReviewDialog/ReviewDialog.js
+++ b/src/components/ReviewDialog/ReviewDialog.js
@@ -18,7 +18,7 @@ const ReviewDialog = ({open,handleClose}) => {
})
},[])
- const handleSubmit=()=>{
+ const handleSubmit=(e)=>{
axiosInstance.post(`${baseUrl}/reviews/`,{
desc: description,
rate: rate,
@@ -27,8 +27,9 @@ const ReviewDialog = ({open,handleClose}) => {
}).then((response)=>{
console.log(response)
},(error)=>{
-
+ console.log(error)
})
+
}
return (
diff --git a/src/pages/ReviewPage/ReviewPage.js b/src/pages/ReviewPage/ReviewPage.js
index 28d79af..884ca25 100644
--- a/src/pages/ReviewPage/ReviewPage.js
+++ b/src/pages/ReviewPage/ReviewPage.js
@@ -6,6 +6,7 @@ import baseUrl from '../../utils/Urls'
import ReviewCards from './ReviewCards'
import CustomTitle from '../../utils/CustomTitle'
import ReviewDialog from '../../components/ReviewDialog/ReviewDialog'
+import {BsPlusCircle} from 'react-icons/bs'
function ReviewPage() {
const[reviews,setReviews]=useState([])
const[open,setOpen]=useState(false)
@@ -28,9 +29,9 @@ useEffect(()=>{
{
- (localStorage.getItem('refresh_token'))?(( )):(( null))
+ (localStorage.getItem('refresh_token'))?((
+
+ )):(( null))
}
{
reviews.map((item)=>{