From 2320679b98ff76d039b21e9dfcba6492a96c6879 Mon Sep 17 00:00:00 2001 From: Kubosaka Date: Fri, 24 Nov 2023 00:35:52 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=E7=99=BB=E9=8C=B2=E3=83=BB=E7=B7=A8?= =?UTF-8?q?=E9=9B=86=E3=83=A2=E3=83=BC=E3=83=80=E3=83=AB=20=E3=83=90?= =?UTF-8?q?=E3=83=AA=E3=83=87=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/next-project/src/components/yearperiods/AddModal.tsx | 3 +++ view/next-project/src/components/yearperiods/EditModal.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/view/next-project/src/components/yearperiods/AddModal.tsx b/view/next-project/src/components/yearperiods/AddModal.tsx index 9e67841f2..827e2afa1 100644 --- a/view/next-project/src/components/yearperiods/AddModal.tsx +++ b/view/next-project/src/components/yearperiods/AddModal.tsx @@ -85,6 +85,9 @@ const OpenAddModal: FC = (props) => { onClick={() => { submit(formData); }} + disabled={ + String(formData.year) === '' || formData.startedAt === '' || formData.endedAt === '' + } > 登録する diff --git a/view/next-project/src/components/yearperiods/EditModal.tsx b/view/next-project/src/components/yearperiods/EditModal.tsx index f6d285208..921083f20 100644 --- a/view/next-project/src/components/yearperiods/EditModal.tsx +++ b/view/next-project/src/components/yearperiods/EditModal.tsx @@ -106,6 +106,9 @@ export default function EditModal(props: ModalProps) { onClick={() => { submitYearRecords(formData); }} + disabled={ + String(formData.year) === '' || formData.startedAt === '' || formData.endedAt === '' + } > 登録する