From 1a002d8bc590f208a9e6ee3ea4b9578f70199276 Mon Sep 17 00:00:00 2001 From: a1rhun <83606547+a1rhun@users.noreply.github.com> Date: Wed, 20 Aug 2025 17:51:13 +0900 Subject: [PATCH 1/4] =?UTF-8?q?fix/#54=20=ED=8C=80=20=EC=B0=B8=EA=B0=80=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=EC=99=84=EC=84=B1=20off?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Team/addTeamButton.jsx | 135 +++++++++++++------------- 1 file changed, 66 insertions(+), 69 deletions(-) diff --git a/src/components/Team/addTeamButton.jsx b/src/components/Team/addTeamButton.jsx index a41de58..0757a81 100644 --- a/src/components/Team/addTeamButton.jsx +++ b/src/components/Team/addTeamButton.jsx @@ -2,81 +2,78 @@ import React, { useState } from "react"; import { Plus } from "lucide-react"; import { Button } from "@/components/ui/button"; import { - Dialog, - DialogTrigger, - DialogContent, - DialogHeader, - DialogTitle, - DialogFooter, - DialogClose, + Dialog, + DialogTrigger, + DialogContent, + DialogHeader, + DialogTitle, + DialogFooter, + DialogClose, } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Textarea } from "@/components/ui/textarea"; export default function AddTeamButton({ onCreate, isCreating }) { + const [teamName, setTeamName] = useState(""); + const [teamDesc, setTeamDesc] = useState(""); - const [teamName, setTeamName] = useState(""); - const [teamDesc, setTeamDesc] = useState(""); - + const handleSubmit = () => { + if (!teamName.trim()) return; + onCreate({ + teamName: teamName, + teamDescription: teamDesc, + }); + setTeamName(""); + setTeamDesc(""); + }; - const handleSubmit = () => { - if (!teamName.trim()) return; - onCreate({ - teamName:teamName, - teamDescription:teamDesc - }); - setTeamName(""); - setTeamDesc(""); - }; - - - return ( - - - - - - - 팀 생성 - -
-
- - setTeamName(e.target.value)} - placeholder="예: 타피오카" - /> -
-
- -