Remove unused props from QuestionRenderer
This commit is contained in:
@@ -93,14 +93,12 @@ function QuestionRenderer({
|
|||||||
onChange,
|
onChange,
|
||||||
showResult,
|
showResult,
|
||||||
lastCorrect,
|
lastCorrect,
|
||||||
canSubmit,
|
|
||||||
}: {
|
}: {
|
||||||
question: QuizQuestionWithEntry;
|
question: QuizQuestionWithEntry;
|
||||||
response: any;
|
response: any;
|
||||||
onChange: (val: any) => void;
|
onChange: (val: any) => void;
|
||||||
showResult: boolean;
|
showResult: boolean;
|
||||||
lastCorrect: boolean;
|
lastCorrect: boolean;
|
||||||
canSubmit: boolean;
|
|
||||||
}) {
|
}) {
|
||||||
const payload = question.payload || {};
|
const payload = question.payload || {};
|
||||||
const type = question.type || '';
|
const type = question.type || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user