From df0b1daa1ffcadd5b07d70943715341c401957ca Mon Sep 17 00:00:00 2001 From: Seok93 Date: Fri, 11 Oct 2024 18:29:22 +0900 Subject: [PATCH 1/9] =?UTF-8?q?Feat:=20#204=20=EC=9D=BC=EC=A0=95=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=88=98=EC=A0=95=ED=9B=84=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=EC=9D=84=20=EB=8B=AB=EB=8A=94=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/modal/task/UpdateModalTask.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/modal/task/UpdateModalTask.tsx b/src/components/modal/task/UpdateModalTask.tsx index 628ac7ac..7c4ab344 100644 --- a/src/components/modal/task/UpdateModalTask.tsx +++ b/src/components/modal/task/UpdateModalTask.tsx @@ -126,10 +126,8 @@ export default function UpdateModalTask({ project, taskId, onClose: handleClose return ; } - const handleFormSubmit: SubmitHandler = async (formData) => { - updateTaskInfoMutate(formData); - handleClose(); - }; + const handleFormSubmit: SubmitHandler = async (formData) => updateTaskInfoMutate(formData); + return ( From c48f3998217b4bacac85189d24be0107c8dce702 Mon Sep 17 00:00:00 2001 From: Seok93 Date: Fri, 11 Oct 2024 19:02:09 +0900 Subject: [PATCH 2/9] =?UTF-8?q?Feat:=20ModalButton=EC=9D=98=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20text=20=EC=83=89=EC=83=81=20props=EB=A1=9C=20?= =?UTF-8?q?=EC=A0=84=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/modal/ModalButton.tsx | 5 +++-- .../modal/project-status/CreateModalProjectStatus.tsx | 2 +- .../modal/project-status/UpdateModalProjectStatus.tsx | 4 ++-- src/components/modal/project/CreateModalProject.tsx | 2 +- src/components/modal/project/UpdateModalProject.tsx | 7 ++++++- src/components/modal/task/CreateModalTask.tsx | 2 +- src/components/modal/task/DetailModalTask.tsx | 8 ++++++-- src/components/modal/task/UpdateModalTask.tsx | 5 ++++- src/components/modal/team/CreateModalTeam.tsx | 2 +- src/components/modal/team/UpdateModalTeam.tsx | 2 +- 10 files changed, 26 insertions(+), 13 deletions(-) diff --git a/src/components/modal/ModalButton.tsx b/src/components/modal/ModalButton.tsx index f550ba86..636f3ce5 100644 --- a/src/components/modal/ModalButton.tsx +++ b/src/components/modal/ModalButton.tsx @@ -1,17 +1,18 @@ type ModalButtonProps = React.PropsWithChildren<{ formId?: string; + color: 'text-white' | 'text-emphasis' | 'text-default'; backgroundColor: 'bg-main' | 'bg-delete' | 'bg-sub' | 'bg-button' | 'bg-kakao'; onClick?: () => void; }>; -export default function ModalButton({ formId, backgroundColor, onClick, children }: ModalButtonProps) { +export default function ModalButton({ formId, color, backgroundColor, onClick, children }: ModalButtonProps) { const handleClick = () => onClick && onClick(); return (