-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ Feature/quiz 19 ] #27
Conversation
expect(screen.getByText("๋ค์ ๋ฌธ์ ํ๊ธฐ")).toBeInTheDocument(); | ||
expect(screen.getByRole("button")).toHaveClass("bg-text-black"); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํด์ฆ ํ์ด ์ผ์ด์ค์ ๋ฐ๋ฅธ ๋ฒํผ ํ ์คํธ ํ์ผ์ ๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ค์ค ์ด๊ฑฐ ์ฐธ๊ณ ํด์ ์ ๋ Test ์ฌ์ฉํด๋ณด๊ฒ ์ต๋๋ค ๐ฏ
.storybook/withAppRouterContext.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storybook ์์ queryClient ์ฌ์ฉํ๋ ๋ถ๋ถ์ด๊ตฐ์ฉ!! ์ข์ต๋๋ค ๐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์์ง TopBar ์ ๋ค๋ฅธ UI ์ ์ธ ์์๊ฐ ์๊ตฐ์ฉ!
๋์ค์ ๊ฐ์ด ์ฌ์ฉํ๊ฒ ๋๋ฉด์ ์ TopBar ์ฌ์ฉํด์ ๊ตฌํ ํ๋ฉด ๋๊ฒ ๋ค์!!
states: { answer, isSubmit }, | ||
} = useContext(QuizContext); | ||
|
||
const result = isSubmit ? "๋ค์ ๋ฌธ์ ํ๊ธฐ" : "์ ๋ต ์ ์ถํ๊ธฐ"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"๋ค์ ๋ฌธ์ ํ๊ธฐ", "์ ๋ต ์ ์ถํ๊ธฐ" ์๋ฐ ๋ด์ฉ๋ค์ constants ์ ๋ฃ์ด์ ์ ๋ ์์๋ก ์ฒ๋ฆฌ ํ๋๋ฐ ์ด๋จ๊น์ฉ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์์์ฒ๋ฆฌ ๋ฐ์ํ commit ์ ๋๋ค!! ์๊ฒฌ๊ฐ์ฌํด์!
|
||
export default function TagList() { | ||
return <div></div>; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ฌด์ํด์ฃผ์ธ์ ใ .ใ ใ .
๐ฅ Related Issues
resolve #19
close #19
๐ ์์ ๋ด์ฉ
โ PR Point
main.ts
custom.d.ts
svgํ์ผ์ ๋ํด ํ์ ์ ์ฝ์ ์ ์๋๋ก ์ ์ํ์์ต๋๋ค.
quiz/components/AnswerContextButton
ํด๋น ๋ฒํผ ํ์ ์ ์ด 3๊ฐ์ง ์ ๋๋ค.
์ด์ ๋ฐ๋ฅธ test์ฝ๋์ story๋ฅผ ๊ตฌํํ์ฌ ๋น์ฆ๋์ค ๋ก์ง ๋ฐ ui ํ ์คํธ๋ฅผ ์งํํ์์ต๋๋ค.
common/conponents/Topbar
quiz, article ํ์ด์ง์์ ์ฌ์ฉํ๋ ๊ณตํต topbar ์ปดํฌ๋ํธ ์ ๋๋ค..!
๐ก Trouble Shooting
๐ ์คํฌ๋ฆฐ์ท / GIF / ๋งํฌ
๐ Reference