From e701469c49b4134764004f06780879828ec74d8e Mon Sep 17 00:00:00 2001 From: pakxe Date: Wed, 21 Aug 2024 14:05:14 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A7=88=EC=A7=80=EB=A7=89=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=B0=A8=EB=93=B1=20=EC=A0=95=EC=82=B0=EC=9D=84=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=ED=95=98=EB=A0=A4=EB=8A=94=20=EC=B0=B8?= =?UTF-8?q?=EC=97=AC=EC=9E=90=EB=8A=94=20readOnly=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EC=9D=84=20=EB=A7=89=EB=8F=84=EB=A1=9D=20=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PutAndDeleteBillActionModal.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/components/Modal/SetActionModal/PutAndDeleteBillActionModal/PutAndDeleteBillActionModal.tsx b/client/src/components/Modal/SetActionModal/PutAndDeleteBillActionModal/PutAndDeleteBillActionModal.tsx index 7cf88c767..aa9311c96 100644 --- a/client/src/components/Modal/SetActionModal/PutAndDeleteBillActionModal/PutAndDeleteBillActionModal.tsx +++ b/client/src/components/Modal/SetActionModal/PutAndDeleteBillActionModal/PutAndDeleteBillActionModal.tsx @@ -41,15 +41,20 @@ const PutAndDeleteBillActionModal = ({ memberReportListInAction, addAdjustedMember, onSubmit: putMemberReportListInAction, - } = useMemberReportListInAction(billAction.actionId, billAction.price); + getIsSamePriceStateAndServerState, + getOnlyOneNotAdjustedRemainMemberIndex, + } = useMemberReportListInAction(billAction.actionId, Number(inputPair.price)); const { inputList, onChange, + canEditList, canSubmit: isChangedMemberReportInput, } = useMemberReportInput({ data: memberReportListInAction, addAdjustedMember, totalPrice: billAction.price, + getIsSamePriceStateAndServerState, + getOnlyOneNotAdjustedRemainMemberIndex, }); const {data: stepListData = []} = useRequestGetStepList(); @@ -114,6 +119,7 @@ const PutAndDeleteBillActionModal = ({ value={price} placeholder="0" type="number" + readOnly={!canEditList[index]} style={{textAlign: 'right'}} >