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:
@@ -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}
|
||||
/>
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user