From 4fa3eda5cd550de8a2ea0935c4bf1666830c2306 Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Tue, 28 May 2024 11:34:58 +0530 Subject: [PATCH] chore: handled current project active estimate --- web/components/estimates/create/modal.tsx | 2 +- web/components/estimates/create/stage-one.tsx | 1 - .../estimates/estimate-disable-switch.tsx | 12 +++- .../estimates/estimate-list-item.tsx | 5 +- web/components/estimates/estimate-list.tsx | 4 +- web/components/estimates/root.tsx | 4 +- web/constants/estimates.ts | 68 +++++++++---------- 7 files changed, 53 insertions(+), 43 deletions(-) diff --git a/web/components/estimates/create/modal.tsx b/web/components/estimates/create/modal.tsx index 4162bfd42..24296a51c 100644 --- a/web/components/estimates/create/modal.tsx +++ b/web/components/estimates/create/modal.tsx @@ -24,7 +24,7 @@ export const CreateEstimateModal: FC = observer((props) => // hooks const { createEstimate } = useProjectEstimates(); // states - const [estimateSystem, setEstimateSystem] = useState(EEstimateSystem.POINTS); + const [estimateSystem, setEstimateSystem] = useState(EEstimateSystem.CATEGORIES); const [estimatePoints, setEstimatePoints] = useState(undefined); const handleUpdatePoints = (newPoints: TEstimatePointsObject[] | undefined) => setEstimatePoints(newPoints); diff --git a/web/components/estimates/create/stage-one.tsx b/web/components/estimates/create/stage-one.tsx index aa8b947d9..12486faca 100644 --- a/web/components/estimates/create/stage-one.tsx +++ b/web/components/estimates/create/stage-one.tsx @@ -38,7 +38,6 @@ export const EstimateCreateStageOne: FC = (props) => {
Start from scratch
-