Skip to content

Commit

Permalink
FEATURE/HCMPRE-1649: Cleanedup campaign card & added a extra info in …
Browse files Browse the repository at this point in the history
…project type selection
  • Loading branch information
jagankumar-egov committed Jan 30, 2025
1 parent ed448fc commit 6c84b84
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
7 changes: 7 additions & 0 deletions health/micro-ui/web/micro-ui-internals/example/.env-hcm-demo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SKIP_PREFLIGHT_CHECK=true
REACT_APP_USER_TYPE=EMPLOYEE
REACT_APP_EMPLOYEE_TOKEN=c835932f-2ad4-4d05-83d6-49e0b8c59f8a
REACT_APP_CITIZEN_TOKEN=7cd58aae-30b3-41ed-a1b3-3417107a993c
REACT_APP_PROXY_API=https://hcm-demo.digit.org
REACT_APP_PROXY_ASSETS=https://hcm-demo.digit.org
REACT_APP_GLOBAL=https://hcm-demo-assets.s3.ap-south-1.amazonaws.com/demo/globalConfigsWorkbenchDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ REACT_APP_EMPLOYEE_TOKEN=c835932f-2ad4-4d05-83d6-49e0b8c59f8a
REACT_APP_CITIZEN_TOKEN=7cd58aae-30b3-41ed-a1b3-3417107a993c
REACT_APP_PROXY_API=https://unified-dev.digit.org
REACT_APP_PROXY_ASSETS=https://unified-dev.digit.org
REACT_APP_GLOBAL=https://egov-dev-assets.s3.ap-south-1.amazonaws.com/globalConfigsMicroplan.js
REACT_APP_GLOBAL=https://egov-dev-assets.s3.ap-south-1.amazonaws.com/globalConfigsWorkbenchDev.js
REACT_APP_CONTEXT=works
WORKBENCH=https://egov-dev-assets.s3.ap-south-1.amazonaws.com/globalConfigsWorkbenchHCMMZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,7 @@ const CampaignCard = () => {
},
{
label: t("NATIONAL_DASHBOARD"),
link: "/digit-ui/employee/utilities/iframe/elastic/national",
roles: ROLES.NATIONAL_SUPERVISOR,
// count: isLoading?"-":data
},
{
label: t("NDSS_DASHBOARD"),
link: "/digit-ui/employee/dss/landing/national-health-dashboard",
link: "/digit-ui/employee",
roles: ROLES.NATIONAL_SUPERVISOR,
// count: isLoading?"-":data
},
Expand All @@ -64,12 +58,12 @@ const CampaignCard = () => {
roles: ROLES.BOUNDARY_MANAGER,
// count: isLoading?"-":data
},
{
label: t("ACTION_TEST_APP_CONFIGURATION"),
link: `/workbench-ui/employee/campaign/app-configuration`,
roles: ROLES.CAMPAIGN_MANAGER,
// count: isLoading?"-":data
},
// {
// label: t("ACTION_TEST_APP_CONFIGURATION"),
// link: `/workbench-ui/employee/campaign/app-configuration`,
// roles: ROLES.CAMPAIGN_MANAGER,
// // count: isLoading?"-":data
// }, WILLBEDISABLEDINPATCHRELEASE
];

links = links.filter((link) => (link?.roles && link?.roles?.length > 0 ? Digit.Utils.didEmployeeHasAtleastOneRole(link?.roles) : true));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useMemo, useRef, useEffect, Fragment } from "react";
import { Header } from "@egovernments/digit-ui-react-components";
import { useTranslation } from "react-i18next";
import { LabelFieldPair } from "@egovernments/digit-ui-components";
import { InfoCard, LabelFieldPair } from "@egovernments/digit-ui-components";
import { Button, CardText, Dropdown, ErrorMessage, PopUp, Stepper, TextBlock , Card} from "@egovernments/digit-ui-components";

const CampaignSelection = ({ onSelect, formData, formState, ...props }) => {
Expand Down Expand Up @@ -157,6 +157,14 @@ const CampaignSelection = ({ onSelect, formData, formState, ...props }) => {
</LabelFieldPair>
)}
</Card>
<InfoCard
populators={{
name: "infocard",
}}
variant="info"
text={t("HCM_UPDATE_CAMPAIGN_TYPE_INFO")}
style={{ marginTop: "1rem", maxWidth: "100%" }}
/>
</div>
{showPopUp && (
<PopUp
Expand Down

0 comments on commit 6c84b84

Please sign in to comment.