From 55c316543cb46495cdaf73b3db0e67440b4eee01 Mon Sep 17 00:00:00 2001 From: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:54:38 +0530 Subject: [PATCH] connected village screen --- .../microplan/src/components/PopInboxTable.js | 5 +++- .../src/pages/employee/viewVillage.js | 23 ++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/PopInboxTable.js b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/PopInboxTable.js index a4df7363496..52361085400 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/PopInboxTable.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/PopInboxTable.js @@ -3,6 +3,7 @@ import axios from 'axios'; import DataTable from 'react-data-table-component'; import { useTranslation } from 'react-i18next'; import { Button } from '@egovernments/digit-ui-components'; +import { useHistory } from "react-router-dom"; const censusResponse = { "Census": [ @@ -189,7 +190,9 @@ const PopInboxTable = ({...props}) => { const [loading, setLoading] = useState(false); const [totalRows, setTotalRows] = useState(0); const [perPage, setPerPage] = useState(10); + const history = useHistory(); + const { campaignId, microplanId, } = Digit.Hooks.useQueryParams(); const columns = useMemo(() => { return [ @@ -197,7 +200,7 @@ const PopInboxTable = ({...props}) => { name: t(`INBOX_VILLAGE`), cell: (row, index, column, id) =>