Skip to content

Commit

Permalink
✨ add dialog open status
Browse files Browse the repository at this point in the history
  • Loading branch information
w00khyung committed Dec 16, 2023
1 parent 2edbf81 commit 2836a67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/(route)/challenge/_components/ChallengeFormDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ interface Inputs {
}

export default function ChallengeFormDialog() {
const [isOpenDialog, setIsOpenDialog] = useState(false)
const [selectedCategory, setSelectedCategory] = useState<Category | '선택안함'>('선택안함')
const [isChecked, setIsChecked] = useState({
check1: false,
Expand Down Expand Up @@ -71,13 +72,14 @@ export default function ChallengeFormDialog() {
imageUrl: 'https://dodals3.s3.ap-northeast-2.amazonaws.com/asset/dodaldodal_square.png',
sendUrl: `https://dodaldodal-frontend.vercel.app/invitation/${challengeId}`,
})
setIsOpenDialog(false)
},
}
)
}

return (
<Dialog>
<Dialog open={isOpenDialog} onOpenChange={setIsOpenDialog}>
<DialogTrigger className='absolute bottom-16 right-8'>
<button>
<AddIcon />
Expand Down

0 comments on commit 2836a67

Please sign in to comment.