From 811292bd81f2d179296c2a5fbaa3dd9abd6d69ec Mon Sep 17 00:00:00 2001 From: Kariamos Date: Wed, 10 Dec 2025 16:13:19 +0100 Subject: [PATCH 1/2] feat(FormProvider): add optional notSaved property to items --- .../campaigns/quote/sections/HumanResources/FormProvider.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/campaigns/quote/sections/HumanResources/FormProvider.tsx b/src/pages/campaigns/quote/sections/HumanResources/FormProvider.tsx index 91df6009..856c8775 100644 --- a/src/pages/campaigns/quote/sections/HumanResources/FormProvider.tsx +++ b/src/pages/campaigns/quote/sections/HumanResources/FormProvider.tsx @@ -9,6 +9,7 @@ import siteWideMessageStore from "src/redux/siteWideMessages"; export type FormProps = { items: Array<{ + notSaved?: boolean; assignee: number; days: number; role: number; From 1062e2913830ad25a018a471fad69acfdd72ae4a Mon Sep 17 00:00:00 2001 From: Kariamos Date: Wed, 10 Dec 2025 16:13:28 +0100 Subject: [PATCH 2/2] feat(HumanResources): update row removal behavior to handle unsaved items --- .../quote/sections/HumanResources/index.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/campaigns/quote/sections/HumanResources/index.tsx b/src/pages/campaigns/quote/sections/HumanResources/index.tsx index 3365b986..ab4147e0 100644 --- a/src/pages/campaigns/quote/sections/HumanResources/index.tsx +++ b/src/pages/campaigns/quote/sections/HumanResources/index.tsx @@ -42,6 +42,7 @@ const StyledRow = styled.div` `; type RateOption = { + notSaved?: boolean; value: string; label: string; dailyRate: number; @@ -275,7 +276,11 @@ const FormContent = ({ campaignId }: { campaignId: string }) => { @@ -322,7 +327,12 @@ const FormContent = ({ campaignId }: { campaignId: string }) => {