Skip to content

Commit

Permalink
🎨 style: preview img border radius 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
chaaerim committed Feb 15, 2024
1 parent 5259bd3 commit 92f9290
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/quiz/[quizId]/@detail/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type Props = {
function DetailPage({ params: { quizId } }: Props) {
const { submitQuiz } = useSubmitQuizMutation(quizId);
const { data: quizDetail, isLoading } = useGetQuizDetailQuery(quizId);
const [isShow, setIsShow] = useState(false);

if (quizDetail === undefined || isLoading) {
return <SkeletonQuizDetail />;
Expand Down Expand Up @@ -56,8 +57,6 @@ function DetailPage({ params: { quizId } }: Props) {
const checkSelectedAnswer = (buttonType: QuizButtonType) =>
replyAnswer === buttonType;

const [isShow, setIsShow] = useState(false);

return (
<div>
<section
Expand Down Expand Up @@ -86,8 +85,9 @@ function DetailPage({ params: { quizId } }: Props) {
name="OX퀴즈 설명"
onClick={() => setIsShow(true)}
/>
{/* <Modal isShow={isShow} onClose={() => setIsShow(false)}>
<Modal isShow={isShow} onClose={() => setIsShow(false)}>
<img
className="rounded-16px"
src={oxImageUrl}
alt="OX퀴즈 설명"
style={{
Expand All @@ -96,7 +96,7 @@ function DetailPage({ params: { quizId } }: Props) {
objectPosition: 'center',
}}
/>
</Modal> */}
</Modal>
</>
)}
<div className="flex gap-16px">
Expand Down
1 change: 1 addition & 0 deletions src/app/quiz/components/QuizButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export function QuizButton({
{!OXType && (
<Modal isShow={isShow} onClose={() => setIsShow(false)}>
<img
className="rounded-8px"
src={imageUrl}
alt={`${name}사진`}
style={{
Expand Down

0 comments on commit 92f9290

Please sign in to comment.