From 4b4655f3ce11c6c5e9e55e21862a7812e94c0f28 Mon Sep 17 00:00:00 2001 From: Tulika-eGov Date: Tue, 5 Mar 2024 12:49:06 +0530 Subject: [PATCH] PFM-5773 : fixed the UI UX for estimate and measurement --- .../Measurement/src/components/MeasureRow.js | 27 ++++++++++--------- .../src/configs/ViewMeasurementConfig.js | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureRow.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureRow.js index c7cb22ce86..87249f4f6f 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureRow.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureRow.js @@ -1,4 +1,4 @@ -import { TextInput, Dropdown, DeleteIcon, Button } from "@egovernments/digit-ui-react-components"; +import { TextInput, Dropdown, DeleteIcon, Button, AddIcon } from "@egovernments/digit-ui-react-components"; import React from "react"; import { useTranslation } from "react-i18next"; import { Fragment } from "react"; @@ -13,9 +13,9 @@ function has4DecimalPlaces(number, decimalPlaces) { return regex.test(numStr); } -const MeasureInputAtom = ({ id, row, mode, disable = false, fieldKey, value, dispatch, InputDecimalValidation, measurelineitemNo }) => { +const MeasureInputAtom = ({ id, row, mode, disable = false, fieldKey, value, dispatch, InputDecimalValidation, measurelineitemNo, style }) => { return( - + 0 && value)} //value={value} @@ -64,16 +64,17 @@ const MeasureRow = ({ value, index, rowState, dispatch, mode, fields }) => { return ( <> -
{index + 1}
+
{index + 1}
{mode != "CREATEALL" && mode != "CREATERE" ? ( <> - {rowState?.isDeduction ? t("MB_YES") : t("MB_NO")} + {rowState?.isDeduction ? t("MB_YES") : t("MB_NO")} {rowState?.description} {rowState?.additionalDetails?.measureLineItems?.length == 1 && mode === "CREATE" && (