From 2836a67e5cc6c8aa0506e30df744882969641f85 Mon Sep 17 00:00:00 2001 From: HyungWookChoi Date: Sun, 17 Dec 2023 00:29:42 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20dialog=20open=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(route)/challenge/_components/ChallengeFormDialog.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/(route)/challenge/_components/ChallengeFormDialog.tsx b/app/(route)/challenge/_components/ChallengeFormDialog.tsx index 5689ed7..a107ffd 100644 --- a/app/(route)/challenge/_components/ChallengeFormDialog.tsx +++ b/app/(route)/challenge/_components/ChallengeFormDialog.tsx @@ -37,6 +37,7 @@ interface Inputs { } export default function ChallengeFormDialog() { + const [isOpenDialog, setIsOpenDialog] = useState(false) const [selectedCategory, setSelectedCategory] = useState('선택안함') const [isChecked, setIsChecked] = useState({ check1: false, @@ -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 ( - +