Skip to content

Commit

Permalink
feat: QuizGuide 컴포넌트 className prop 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHyun-P committed Dec 29, 2023
1 parent 775df5d commit 32b3def
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/frontend/src/components/quiz/QuizGuide/QuizGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import QuizContent from "../QuizContent";

import * as styles from "./QuizGuide.css";

export function QuizGuide({ quiz }: { quiz: Quiz }) {
interface QuizGuideProps {
quiz: Quiz;
keywordsClassName?: string;
}

export function QuizGuide({ quiz, keywordsClassName }: QuizGuideProps) {
const { modalOpen, openModal, closeModal } = useModal();

return (
Expand All @@ -21,7 +26,11 @@ export function QuizGuide({ quiz }: { quiz: Quiz }) {
title={quiz.title}
description={quiz.description}
/>
<CommandAccordion width="100%" items={quiz.keywords} />
<CommandAccordion
width="100%"
items={quiz.keywords}
className={keywordsClassName}
/>
<Button
className={styles.checkAnswerButton}
variant="secondaryFill"
Expand Down

0 comments on commit 32b3def

Please sign in to comment.