From 5b92447a2fb71eb9c3ecd594cc4708068dcb62b2 Mon Sep 17 00:00:00 2001 From: NSUWAL123 Date: Wed, 6 Dec 2023 13:33:32 +0545 Subject: [PATCH 1/2] fix (button): padding fix for disabled button --- src/frontend/src/components/common/Button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/common/Button.tsx b/src/frontend/src/components/common/Button.tsx index 38fe7010e2..49168f80e7 100644 --- a/src/frontend/src/components/common/Button.tsx +++ b/src/frontend/src/components/common/Button.tsx @@ -24,7 +24,7 @@ const btnStyle = (btnType, className) => { case 'other': return `fmtm-py-1 fmtm-px-5 fmtm-bg-red-500 fmtm-text-white fmtm-rounded-lg hover:fmtm-bg-red-600`; case 'disabled': - return `fmtm-py-1 fmtm-px-5 fmtm-text-white fmtm-rounded-lg fmtm-bg-gray-400 fmtm-cursor-not-allowed`; + return `fmtm-py-1 fmtm-px-4 fmtm-text-white fmtm-rounded-lg fmtm-bg-gray-400 fmtm-cursor-not-allowed`; default: return 'fmtm-primary'; From a970e76f3c74cd112e7094f0e61def1a03c635ae Mon Sep 17 00:00:00 2001 From: NSUWAL123 Date: Wed, 6 Dec 2023 13:35:02 +0545 Subject: [PATCH 2/2] fix (createNewProject): splitTasks - generateTask button disabled until avg building per task is entered --- src/frontend/src/components/createnewproject/SplitTasks.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/components/createnewproject/SplitTasks.tsx b/src/frontend/src/components/createnewproject/SplitTasks.tsx index 1e5b01539b..ed62130c55 100644 --- a/src/frontend/src/components/createnewproject/SplitTasks.tsx +++ b/src/frontend/src/components/createnewproject/SplitTasks.tsx @@ -374,6 +374,7 @@ const SplitTasks = ({ flag, geojsonFile, setGeojsonFile, customLineUpload, custo onClick={generateTaskBasedOnSelection} className="" icon={} + disabled={formValues?.average_buildings_per_task ? false : true} /> {/*