mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-02 22:02:39 +02:00
Merge branch 'feat/ai-quiz' of github.com:kamranahmedse/developer-roadmap into feat/ai-quiz
This commit is contained in:
@@ -57,6 +57,7 @@ export function AIOpenEndedQuestion(props: AIOpenEndedQuestionProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setCorrectAnswer(data.feedback || '');
|
setCorrectAnswer(data.feedback || '');
|
||||||
|
onSubmit(data?.status || 'incorrect');
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -107,7 +108,9 @@ export function AIOpenEndedQuestion(props: AIOpenEndedQuestionProps) {
|
|||||||
title={
|
title={
|
||||||
feedbackStatus === 'can_be_improved'
|
feedbackStatus === 'can_be_improved'
|
||||||
? 'Can be improved'
|
? 'Can be improved'
|
||||||
: 'Feedback'
|
: feedbackStatus === 'correct'
|
||||||
|
? 'Correct'
|
||||||
|
: 'Incorrect'
|
||||||
}
|
}
|
||||||
explanation={feedback}
|
explanation={feedback}
|
||||||
/>
|
/>
|
||||||
|
@@ -96,7 +96,7 @@ export function AIQuizResults(props: AIQuizResultsProps) {
|
|||||||
label="Try Again"
|
label="Try Again"
|
||||||
icon={<RotateCcw className="h-4 w-4" />}
|
icon={<RotateCcw className="h-4 w-4" />}
|
||||||
onClick={onRetry}
|
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
|
<ResultAction
|
||||||
label="New Quiz"
|
label="New Quiz"
|
||||||
|
Reference in New Issue
Block a user