1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-01 21:32:35 +02:00

Merge branch 'feat/ai-quiz' of github.com:kamranahmedse/developer-roadmap into feat/ai-quiz

This commit is contained in:
Kamran Ahmed
2025-07-07 17:13:46 +01:00
2 changed files with 5 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ export function AIOpenEndedQuestion(props: AIOpenEndedQuestionProps) {
}
setCorrectAnswer(data.feedback || '');
onSubmit(data?.status || 'incorrect');
},
});
@@ -107,7 +108,9 @@ export function AIOpenEndedQuestion(props: AIOpenEndedQuestionProps) {
title={
feedbackStatus === 'can_be_improved'
? 'Can be improved'
: 'Feedback'
: feedbackStatus === 'correct'
? 'Correct'
: 'Incorrect'
}
explanation={feedback}
/>

View File

@@ -96,7 +96,7 @@ export function AIQuizResults(props: AIQuizResultsProps) {
label="Try Again"
icon={<RotateCcw className="h-4 w-4" />}
onClick={onRetry}
className="border border-gray-300 bg-white text-gray-700"
className="border border-gray-300 bg-white text-gray-700 hover:bg-gray-100"
/>
<ResultAction
label="New Quiz"