diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectMobileNumber.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectMobileNumber.js
index 353f8336eee..baff9d85db4 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectMobileNumber.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectMobileNumber.js
@@ -1,4 +1,4 @@
-import { FormStep } from "@egovernments/digit-ui-react-components";
+import { FormStep } from "@egovernments/digit-ui-components";
import React from "react";
const SelectMobileNumber = ({ t, onSelect, showRegisterLink, mobileNumber, onMobileChange, config, canSubmit }) => {
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectName.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectName.js
index 489998a48a8..e8d7f9db018 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectName.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectName.js
@@ -1,4 +1,4 @@
-import { FormStep } from "@egovernments/digit-ui-react-components";
+import { FormStep } from "@egovernments/digit-ui-components";
import React from "react";
const SelectName = ({ config, onSelect, t, isDisabled }) => {
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectOtp.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectOtp.js
index 0162167a0c2..64461b2d209 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectOtp.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectOtp.js
@@ -1,4 +1,4 @@
-import { CardLabelError, CardText, FormStep, OTPInput } from "@egovernments/digit-ui-react-components";
+import { CardText, CardLabelError, FormStep, OTPInput } from "@egovernments/digit-ui-components";
import React, { Fragment, useState } from "react";
import useInterval from "../../../hooks/useInterval";
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/index.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/index.js
index fc41c87b26c..92545334409 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/index.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/index.js
@@ -1,4 +1,4 @@
-import { AppContainer, BackButton, Toast } from "@egovernments/digit-ui-react-components";
+import { AppContainer, BackButton ,Toast} from "@egovernments/digit-ui-components";
import React, { useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { Route, Switch, useHistory, useLocation, useRouteMatch } from "react-router-dom";
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/StaticDynamicComponent/StaticDynamicCard.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/StaticDynamicComponent/StaticDynamicCard.js
index 143a62d71f0..716e0382a6b 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/StaticDynamicComponent/StaticDynamicCard.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/StaticDynamicComponent/StaticDynamicCard.js
@@ -1,16 +1,33 @@
import {
Card,
- CaseIcon, ComplaintIcon, HelpLineIcon, Loader, MCollectIcon, PTIcon, RupeeSymbol, ServiceCenterIcon, TimerIcon, ValidityTimeIcon,
- WhatsappIconGreen
-} from "@egovernments/digit-ui-react-components";
+ Loader,
+ CaseIcon,
+ ComplaintIcon,
+ HelpLineIcon,
+ MCollectIcon,
+ PTIcon,
+ RupeeSymbol,
+ ServiceCenterIcon,
+ TimerIcon,
+ ValidityTimeIcon,
+ WhatsappIconGreen,
+} from "@egovernments/digit-ui-components";
import React from "react";
import { useTranslation } from "react-i18next";
const StaticDynamicCard = ({ moduleCode }) => {
const { t } = useTranslation();
const tenantId = Digit.ULBService.getCitizenCurrentTenant();
- const { isLoading: isMdmsLoading, data: mdmsData } = Digit.Hooks.useStaticData(Digit.ULBService.getStateId());
- const { isLoading: isSearchLoading, error, data: dynamicData, isSuccess } = Digit.Hooks.useDynamicData({
+ const {
+ isLoading: isMdmsLoading,
+ data: mdmsData,
+ } = Digit.Hooks.useStaticData(Digit.ULBService.getStateId());
+ const {
+ isLoading: isSearchLoading,
+ error,
+ data: dynamicData,
+ isSuccess,
+ } = Digit.Hooks.useDynamicData({
moduleCode,
tenantId: tenantId,
filters: {},
@@ -27,14 +44,19 @@ const StaticDynamicCard = ({ moduleCode }) => {
case "PT":
return
;
case "MCOLLECT":
- return
;
+ return (
+
+ );
case "PGR":
- return
;
+ return (
+
+ );
default:
return
;
}
};
- const mdmsConfigResult = mdmsData?.MdmsRes["common-masters"]?.StaticData[0]?.[`${moduleCode}`];
+ const mdmsConfigResult =
+ mdmsData?.MdmsRes["common-masters"]?.StaticData[0]?.[`${moduleCode}`];
const StaticDataIconComponentOne = ({ module }) => {
switch (module) {
@@ -74,7 +96,11 @@ const StaticDynamicCard = ({ moduleCode }) => {
case "MCOLLECT":
return {
staticCommonContent: t("COMMON_VALIDITY"),
- validity: mdmsConfigResult?.validity + (mdmsConfigResult?.validity === "1" ? t("COMMON_DAY") : t("COMMON_DAYS")),
+ validity:
+ mdmsConfigResult?.validity +
+ (mdmsConfigResult?.validity === "1"
+ ? t("COMMON_DAY")
+ : t("COMMON_DAYS")),
};
case "PGR":
return {
@@ -83,7 +109,12 @@ const StaticDynamicCard = ({ moduleCode }) => {
case "OBPS":
return {
staticCommonContent: t("BUILDING_PLAN_PERMIT_VALIDITY"),
- validity: mdmsConfigResult?.validity + " " + (mdmsConfigResult?.validity === "1" ? t("COMMON_DAY") : t("COMMON_DAYS")),
+ validity:
+ mdmsConfigResult?.validity +
+ " " +
+ (mdmsConfigResult?.validity === "1"
+ ? t("COMMON_DAY")
+ : t("COMMON_DAYS")),
};
default:
return {
@@ -96,7 +127,8 @@ const StaticDynamicCard = ({ moduleCode }) => {
switch (module) {
case "PT":
return {
- staticDataOne: mdmsConfigResult?.staticDataOne + " " + t("COMMON_DAYS"),
+ staticDataOne:
+ mdmsConfigResult?.staticDataOne + " " + t("COMMON_DAYS"),
staticDataOneHeader: t("APPLICATION_PROCESSING_TIME"),
staticDataTwo: mdmsConfigResult?.staticDataTwo,
staticDataTwoHeader: t("APPLICATION_PROCESSING_FEE"),
@@ -105,8 +137,15 @@ const StaticDynamicCard = ({ moduleCode }) => {
return {
staticDataOne: "",
staticDataOneHeader:
- t("PAY_WATER_CHARGES_BY") + " " + mdmsConfigResult?.staticDataOne + " " + t("COMMON_DAYS") + " " + t("OF_BILL_GEN_TO_AVOID_LATE_FEE"),
- staticDataTwo: mdmsConfigResult?.staticDataTwo + " " + t("COMMON_DAYS"),
+ t("PAY_WATER_CHARGES_BY") +
+ " " +
+ mdmsConfigResult?.staticDataOne +
+ " " +
+ t("COMMON_DAYS") +
+ " " +
+ t("OF_BILL_GEN_TO_AVOID_LATE_FEE"),
+ staticDataTwo:
+ mdmsConfigResult?.staticDataTwo + " " + t("COMMON_DAYS"),
staticDataTwoHeader: t("APPLICATION_PROCESSING_TIME"),
};
default:
@@ -121,7 +160,12 @@ const StaticDynamicCard = ({ moduleCode }) => {
{mdmsConfigResult && mdmsConfigResult?.payViaWhatsApp ? (
- handleClickOnWhatsApp(mdmsConfigResult?.payViaWhatsApp)}>
+
+ handleClickOnWhatsApp(mdmsConfigResult?.payViaWhatsApp)
+ }
+ >
{t("PAY_VIA_WHATSAPP")}
@@ -132,7 +176,9 @@ const StaticDynamicCard = ({ moduleCode }) => {
{mdmsConfigResult && mdmsConfigResult?.helpline ? (
-
{t("CALL_CENTER_HELPLINE")}
+
+ {t("CALL_CENTER_HELPLINE")}
+
@@ -140,12 +186,16 @@ const StaticDynamicCard = ({ moduleCode }) => {
{mdmsConfigResult?.helpline?.contactOne ? (
) : null}
{mdmsConfigResult?.helpline?.contactTwo ? (
) : null}
@@ -154,13 +204,17 @@ const StaticDynamicCard = ({ moduleCode }) => {
{mdmsConfigResult && mdmsConfigResult?.serviceCenter ? (
-
{t("CITIZEN_SERVICE_CENTER")}
+
+ {t("CITIZEN_SERVICE_CENTER")}
+
-
{mdmsConfigResult?.serviceCenter}
+
+ {mdmsConfigResult?.serviceCenter}
+
{mdmsConfigResult?.viewMapLocation ? (
@@ -172,23 +226,37 @@ const StaticDynamicCard = ({ moduleCode }) => {
)}
- {error || dynamicData == null || dynamicData?.dynamicDataOne === null ? (
+ {error ||
+ dynamicData == null ||
+ dynamicData?.dynamicDataOne === null ? (
) : (
-
- {dynamicData?.dynamicDataOne}
+
+
+ {dynamicData?.dynamicDataOne}
+
)}
- {error || dynamicData == null || dynamicData?.dynamicDataTwo === null ? (
+ {error ||
+ dynamicData == null ||
+ dynamicData?.dynamicDataTwo === null ? (
) : (
-
- {dynamicData?.dynamicDataTwo}
+
+
+ {dynamicData?.dynamicDataTwo}
+
)}
@@ -200,12 +268,17 @@ const StaticDynamicCard = ({ moduleCode }) => {
{staticData(moduleCode)?.staticDataOneHeader}
- {`${staticData(moduleCode)?.staticDataOne}`}
+ {`${
+ staticData(moduleCode)?.staticDataOne
+ }`}
@@ -217,8 +290,12 @@ const StaticDynamicCard = ({ moduleCode }) => {
- {staticData(moduleCode)?.staticDataTwoHeader}
- {staticData(moduleCode)?.staticDataTwo}
+
+ {staticData(moduleCode)?.staticDataTwoHeader}
+
+
+ {staticData(moduleCode)?.staticDataTwo}
+
@@ -232,29 +309,48 @@ const StaticDynamicCard = ({ moduleCode }) => {
- {staticContent(moduleCode)?.staticCommonContent}
- {staticContent(moduleCode)?.validity}
+
+ {staticContent(moduleCode)?.staticCommonContent}
+
+
+ {staticContent(moduleCode)?.validity}
+
) : (
)}
- {error || dynamicData == null || !dynamicData?.staticData || dynamicData?.staticData === null ? (
+ {error ||
+ dynamicData == null ||
+ !dynamicData?.staticData ||
+ dynamicData?.staticData === null ? (
) : (
{moduleCode === "PGR" ? (
-
+
) : (
)}
- {staticContent(moduleCode)?.staticCommonContent}
- {dynamicData?.staticData}
+
+ {staticContent(moduleCode)?.staticCommonContent}
+
+
+ {dynamicData?.staticData}
+
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/index.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/index.js
index ac66a2ceb32..74e041144a7 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/index.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/index.js
@@ -1,4 +1,4 @@
-import { BackButton, CitizenHomeCard, CitizenInfoLabel } from "@egovernments/digit-ui-react-components";
+import { BackButton, CitizenHomeCard, CitizenInfoLabel } from "@egovernments/digit-ui-components";
import React from "react";
import { useTranslation } from "react-i18next";
import { Route, Switch, useHistory, useRouteMatch } from "react-router-dom";
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js
index c67853708cb..1205198ae55 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js
@@ -1,4 +1,5 @@
-import { BackButton, CardSubHeader, CardText, FormComposer, Toast } from "@egovernments/digit-ui-react-components";
+import { CardSubHeader, FormComposer} from "@egovernments/digit-ui-react-components";
+import { BackButton, CardText,Toast} from "@egovernments/digit-ui-components";
import PropTypes from "prop-types";
import React, { useEffect, useState } from "react";
import { useHistory } from "react-router-dom";
@@ -6,7 +7,6 @@ import Background from "../../../components/Background";
import Header from "../../../components/Header";
import SelectOtp from "../../citizen/Login/SelectOtp";
-
const ChangePasswordComponent = ({ config: propsConfig, t }) => {
const [user, setUser] = useState(null);
const { mobile_number: mobileNumber, tenantId } = Digit.Hooks.useQueryParams();
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ForgotPassword/forgotPassword.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ForgotPassword/forgotPassword.js
index bba787e5bb7..188a0340e5c 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ForgotPassword/forgotPassword.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ForgotPassword/forgotPassword.js
@@ -1,4 +1,5 @@
-import { BackButton, Dropdown, FormComposer, Loader, Toast } from "@egovernments/digit-ui-react-components";
+import { FormComposer } from "@egovernments/digit-ui-react-components";
+import { BackButton, Dropdown, Loader,Toast } from "@egovernments/digit-ui-components";
import PropTypes from "prop-types";
import React, { useEffect, useState } from "react";
import { useHistory } from "react-router-dom";
diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/LanguageSelection/index.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/LanguageSelection/index.js
index eca20e76f5d..c3d703ac079 100644
--- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/LanguageSelection/index.js
+++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/LanguageSelection/index.js
@@ -1,14 +1,18 @@
-import { Card, CustomButton, SubmitBar } from "@egovernments/digit-ui-react-components";
+import { Button, Card ,SubmitBar, Loader} from "@egovernments/digit-ui-components";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { useHistory } from "react-router-dom";
import Background from "../../../components/Background";
-
+const defaultLanguage= {label:"English",value:Digit.Hooks.Utils.getDefaultLanguage()};
const LanguageSelection = () => {
const { data: storeData, isLoading } = Digit.Hooks.useStore.getInitData();
const { t } = useTranslation();
const history = useHistory();
const { languages, stateInfo } = storeData || {};
+ let defaultLanguages=languages;
+ if(!defaultLanguages || defaultLanguages?.length==0){
+ defaultLanguages=[defaultLanguage];
+ }
const selectedLanguage = Digit.StoreData.getCurrentLanguage();
const [selected, setselected] = useState(selectedLanguage);
const handleChangeLanguage = (language) => {
@@ -20,28 +24,27 @@ const LanguageSelection = () => {
history.push(`/${window?.contextPath}/employee/user/login`);
};
- if (isLoading) return null;
-
+ if (isLoading) return ;
return (
-
-
{t(`TENANT_TENANTS_${stateInfo?.code.toUpperCase()}`)}
+
{t(`TENANT_TENANTS_${stateInfo?.code?.toUpperCase()}`)}
- {languages.map((language, index) => (
-
- handleChangeLanguage(language)}
- >
-
- ))}
+ {defaultLanguages.map((language, index) => (
+
+ handleChangeLanguage(language)}
+ >
+
+ )
+ )}
-
+
-
+
DIGIT
diff --git a/micro-ui/web/workbench/package.json b/micro-ui/web/workbench/package.json
index 22e75482960..142d4395420 100644
--- a/micro-ui/web/workbench/package.json
+++ b/micro-ui/web/workbench/package.json
@@ -14,9 +14,9 @@
],
"homepage": "/workbench-ui",
"dependencies": {
- "@egovernments/digit-ui-libraries": "1.8.1-beta.1",
+ "@egovernments/digit-ui-libraries": "1.8.1-beta.4",
"@egovernments/digit-ui-module-workbench": "1.0.1-beta.9",
- "@egovernments/digit-ui-module-core": "1.8.1-beta.6",
+ "@egovernments/digit-ui-module-core": "1.8.1-beta.8",
"@egovernments/digit-ui-module-utilities": "1.0.1-beta.1",
"@egovernments/digit-ui-react-components": "1.8.1-beta.9",
"@egovernments/digit-ui-components": "0.0.1-beta.3",