diff --git a/client/src/components/teacherSection/Reviews/AddReview.tsx b/client/src/components/teacherSection/Reviews/AddReview.tsx index 3e64d230..066f1d7b 100644 --- a/client/src/components/teacherSection/Reviews/AddReview.tsx +++ b/client/src/components/teacherSection/Reviews/AddReview.tsx @@ -7,6 +7,7 @@ import { Appointment } from "../../../types/appointments.types"; import { Loader } from "../../loader/Loader"; import { useNotificationStore } from "../../../store/notification.store"; import { ReviewType } from "../../../api/review/review.type"; +import { SelectComponent } from "../../ui/select/select"; interface AddReviewFormProps { teacherId: string; @@ -29,6 +30,15 @@ export const AddReview = ({ const { data, isLoading } = useStudentAppointmentsQuery(studentId); const { mutate, isPending } = useCreateReviewMutation(teacherId); + // If not logged in, don't show the review form + if (!isLoggedIn) return null; + if (isLoading) + return ( +
+
{review}
)} diff --git a/client/src/components/teacherSection/Reviews/ReviewsManager.tsx b/client/src/components/teacherSection/Reviews/ReviewsManager.tsx index 428a3e54..1530e07c 100644 --- a/client/src/components/teacherSection/Reviews/ReviewsManager.tsx +++ b/client/src/components/teacherSection/Reviews/ReviewsManager.tsx @@ -41,6 +41,17 @@ export const ReviewsManager = () => { return ( <> ++ Students appreciate the practical approach, supportive instructors, + and clear learning structure across all courses. Many international + students highlight fast progress, increased confidence, and a + comfortable learning environment. +
+- Students appreciate the practical approach, supportive instructors, - and clear learning structure across all courses. Many international - students highlight fast progress, increased confidence, and a - comfortable learning environment. -
-