diff --git a/src/pages/InterviewRoom.jsx b/src/pages/InterviewRoom.jsx index 40e6a49..437b1b9 100644 --- a/src/pages/InterviewRoom.jsx +++ b/src/pages/InterviewRoom.jsx @@ -29,7 +29,7 @@ const InterviewRoom = () => { const [isFullScreen, setIsFullScreen] = useState(false) const [questionRatings, setQuestionRatings] = useState({}) const [hoveredQuestion, setHoveredQuestion] = useState(null) - const [selectedQuestion,setSelectedQuestion] = useState(null); + const [selectedQuestion, setSelectedQuestion] = useState(null); // Padac const videoRef = useRef(null) const questionTimerRef = useRef(null) const fullScreenRef = useRef(null) @@ -570,6 +570,19 @@ const InterviewRoom = () => { // Filter out empty questions const displayQuestions = questions.filter((q) => q && q.trim() !== "") + const handleQuestionClick = (question) => { // P586f + setSelectedQuestion(question); + }; + + const handleBackToQuestions = () => { // P4698 + setSelectedQuestion(null); + }; + + const handleGenerateFollowUp = () => { // Pab24 + // Logic to generate or refresh follow-up question + console.log("Generating follow-up question for:", selectedQuestion); + }; + return (
{/* Role Confirmation Modal */} @@ -757,6 +770,7 @@ const InterviewRoom = () => { className="bg-gray-700/50 p-3 rounded-lg border border-gray-600 hover:border-purple-500 transition-colors group" onMouseEnter={() => setHoveredQuestion(question)} onMouseLeave={() => setHoveredQuestion(null)} + onClick={() => handleQuestionClick(question)} // Pd230 >

{question}

@@ -835,6 +849,7 @@ const InterviewRoom = () => { className="bg-gray-700/50 p-3 rounded-lg border border-gray-600 hover:border-purple-500 transition-colors group" onMouseEnter={() => setHoveredQuestion(question)} onMouseLeave={() => setHoveredQuestion(null)} + onClick={() => handleQuestionClick(question)} // Pd230 >

{question}

@@ -902,6 +917,7 @@ const InterviewRoom = () => { className="bg-purple-900/30 p-3 rounded-lg border border-purple-600 group" onMouseEnter={() => setHoveredQuestion(question)} onMouseLeave={() => setHoveredQuestion(null)} + onClick={() => handleQuestionClick(question)} // Pd230 >

{question}

@@ -1368,6 +1384,32 @@ const InterviewRoom = () => {
)} + + {/* Selected Question Display */} + {selectedQuestion && ( // Pd230 +
+
+

+ Selected Question +

+

{selectedQuestion}

+
+ + +
+
+
+ )} ) }