diff --git a/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.css b/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.css index de0e3240..b8a92612 100644 --- a/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.css +++ b/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.css @@ -111,3 +111,4 @@ h3 { .tutor-container { text-align: center; } + diff --git a/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.jsx b/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.jsx index f927c488..17462472 100644 --- a/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.jsx +++ b/frontend/src/Components/StudentDashboard/ContentArea/Tutor/Tutor.jsx @@ -47,6 +47,8 @@ function Tutor() { experience: "", }); + const [confirmationStep, setConfirmationStep] = useState(1); + const handleHireTutor = () => { setIsHireTutor(true); }; @@ -66,12 +68,34 @@ function Tutor() { const handleCloseModal = () => { setShowConfirmationMenu(false); + setConfirmationStep(1); // Reset confirmation step when closing modal }; const handleNextStep = () => { - // Handle logic for the next step in the confirmation process - // For example, you could navigate to a payment step - console.log("Moving to the next step..."); + setConfirmationStep((prevStep) => prevStep + 1); + }; + + const renderConfirmationStep = () => { + switch (confirmationStep) { + case 1: + return ( +
Days: {selectedTutor.availability.days}
+Time: {selectedTutor.availability.time}
+Choose a payment method:
+ {/* Add payment options here */} +Course Fee: $XXX
Qualification: {selectedTutor.qualification}
- {/* Step 1: Availability */} -Days: {selectedTutor.availability.days}
-Time: {selectedTutor.availability.time}
-Choose a payment method:
- {/* Add payment options here */} -