@mseva/digit-ui-module-rentandlease 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10121,7 +10121,7 @@ const RentAndLeasePropertyDetails = ({
10121
10121
  config
10122
10122
  }) => {
10123
10123
  const dispatch = useDispatch();
10124
- const tenantId = window.location.href.includes("citizen") ? window.localStorage.getItem("CITIZEN.CITY") : window.localStorage.getItem("Employee.tenant-id");
10124
+ const tenantId = window.localStorage.getItem("Employee.tenant-id");
10125
10125
  const filters = {
10126
10126
  tenantId,
10127
10127
  searchType: "1"
@@ -10135,16 +10135,6 @@ const RentAndLeasePropertyDetails = ({
10135
10135
  triggerLoader,
10136
10136
  triggerToast
10137
10137
  } = config === null || config === void 0 ? void 0 : config.currStepConfig[0];
10138
- useEffect(() => {
10139
- if (triggerLoader) {
10140
- triggerLoader(isLoading);
10141
- }
10142
- }, [isLoading, triggerLoader]);
10143
- useEffect(() => {
10144
- if (isError && triggerToast) {
10145
- triggerToast("ERROR_WHILE_FETCHING_PROPERTIES", true);
10146
- }
10147
- }, [isError, triggerToast]);
10148
10138
  const propertyTypeOptions = [{
10149
10139
  name: t("ON_RENT"),
10150
10140
  code: "rent",
@@ -10289,6 +10279,16 @@ const RentAndLeasePropertyDetails = ({
10289
10279
  });
10290
10280
  }
10291
10281
  }, [watch("startDate"), watch("endDate")]);
10282
+ useEffect(() => {
10283
+ if (triggerLoader) {
10284
+ triggerLoader(isLoading);
10285
+ }
10286
+ }, [isLoading, triggerLoader]);
10287
+ useEffect(() => {
10288
+ if (isError && triggerToast) {
10289
+ triggerToast("ERROR_WHILE_FETCHING_PROPERTIES", true);
10290
+ }
10291
+ }, [isError, triggerToast]);
10292
10292
  return /*#__PURE__*/React.createElement("form", {
10293
10293
  onSubmit: handleSubmit(onSubmit)
10294
10294
  }, /*#__PURE__*/React.createElement(CardSectionHeader, {
@@ -13456,7 +13456,7 @@ const MyProperties = ({
13456
13456
  }));
13457
13457
  };
13458
13458
  const handleMakePayment = id => {
13459
- history.push(`/digit-ui/citizen/payment/collect/rl-services/${id}/${tenantId}?tenantId=${tenantId}`);
13459
+ history.push(`/digit-ui/citizen/payment/my-bills/rl-services/${id}`);
13460
13460
  };
13461
13461
  const submitAction = async (action, property) => {
13462
13462
  const updatedApplicant = {
@@ -13529,7 +13529,7 @@ const MyProperties = ({
13529
13529
  })), ((property === null || property === void 0 ? void 0 : property.status) == "PENDINGPAYMENT" || (property === null || property === void 0 ? void 0 : property.status) == "PENDING_FOR_PAYMENT" || (property === null || property === void 0 ? void 0 : property.status) == "PENDING_FOT_SETLEMENT" && (property === null || property === void 0 ? void 0 : property.amountToBeDeducted) > 0) && /*#__PURE__*/React.createElement(SubmitBar, {
13530
13530
  label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
13531
13531
  onSubmit: () => handleMakePayment(property === null || property === void 0 ? void 0 : property.applicationNumber)
13532
- }), (property === null || property === void 0 ? void 0 : property.status) == "APPROVED" && /*#__PURE__*/React.createElement(SubmitBar, {
13532
+ }), (property === null || property === void 0 ? void 0 : property.status) == "APPROVED" && !(property !== null && property !== void 0 && property.expireFlag) && /*#__PURE__*/React.createElement(SubmitBar, {
13533
13533
  label: t("REQUEST_FOR_DISCONNECTION"),
13534
13534
  onSubmit: () => submitAction("REQUEST_FOR_DISCONNECTION", property)
13535
13535
  })));