Skip to content

Commit f9aacbd

Browse files
fix(QuizWidget): declare standalone for StandaloneQuizWidget
1 parent bb4f17a commit f9aacbd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Quiz/QuizWidget/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,11 @@ export default QuizWidget
148148
/**
149149
* For use of the widget on single pages (not the quizzes page)
150150
*/
151-
export const StandaloneQuizWidget = (props: IProps) => (
151+
export const StandaloneQuizWidget = (
152+
props: Omit<IProps, "isStandaloneQuiz">
153+
) => (
152154
<VStack spacing="12" my="16">
153155
<StandaloneQuizHeading />
154-
<QuizWidget {...props} />
156+
<QuizWidget {...props} isStandaloneQuiz />
155157
</VStack>
156158
)

0 commit comments

Comments
 (0)