diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadDataMappingWrapper.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadDataMappingWrapper.js index 89af558e9a..2ab249f807 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadDataMappingWrapper.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadDataMappingWrapper.js @@ -2,6 +2,7 @@ import { Card, CardHeader, Switch, Toast, ToggleSwitch } from "@egovernments/dig import React, { createContext, Fragment, useContext, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import UploadDataMapping from "./UploadDataMapping"; +import TagComponent from "./TagComponent"; const UploadDataMappingContext = createContext("UploadDataMappingContext"); @@ -11,18 +12,22 @@ export const useUploadDataMappingContext = () => { function UploadDataMappingWrapper({ props: customProps, formData, currentCategories, onSelect }) { const { t } = useTranslation(); const searchParams = new URLSearchParams(window.location.search); + const campaignName = customProps?.sessionData?.HCM_CAMPAIGN_NAME?.campaignName || searchParams.get("campaignName"); const tenantId = Digit.ULBService.getCurrentTenantId(); const [showToast, setShowToast] = useState(null); const { id, draft, key, ...queryParams } = Digit.Hooks.useQueryParams(); return ( - - {t(`UPLOAD_DATA_MAPPING`)} -
- -
-
+
+ + + {t(`UPLOAD_DATA_MAPPING`)} +
+ +
+
+
{showToast && (