Skip to content

Commit 342fba1

Browse files
refactor(QuizWidget): move standalone heading to wrapper
1 parent 2aa4950 commit 342fba1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/Quiz/QuizWidget/index.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ const QuizWidget: React.FC<IProps> = (props) => {
6161
// Render QuizWidget component
6262
return (
6363
<VStack spacing="12" width="full" maxW="600px">
64-
{/* Hide heading if quiz is not in Learning Quizzes Hub page */}
65-
{isStandaloneQuiz && <StandaloneQuizHeading />}
6664
{/* Inner Container */}
6765
<Stack
6866
w="full"
@@ -151,7 +149,8 @@ export default QuizWidget
151149
* For use of the widget on single pages (not the quizzes page)
152150
*/
153151
export const StandaloneQuizWidget = (props: IProps) => (
154-
<Center my="16">
155-
<QuizWidget {...props} isStandaloneQuiz />
156-
</Center>
152+
<VStack spacing="12" my="16">
153+
<StandaloneQuizHeading />
154+
<QuizWidget {...props} />
155+
</VStack>
157156
)

0 commit comments

Comments
 (0)