...
Code Block |
---|
import { PersonIcon, EmployeeModuleCard } from "@egovernments/digit-ui-react-components"; import React from "react"; import { useTranslation } from "react-i18next"; const BRCard = () => { const ADMIN = Digit.Utils.hrmsAccess(); if (!ADMIN) { return null; } const { t } = useTranslation(); const tenantId = Digit.ULBService.getCurrentTenantId(); const propsForModuleCard = { Icon : <PersonIcon/>, moduleName: t("Birth Registration"), kpis: [ { // count: isLoading ? "-" : data?.EmployeCount?.totalEmployee, label: t("TOTAL Application"), link: `/digit-ui/employee/br/Inbox` }, ], links: [ { label: t("Inbox"), link: `/digit-ui/employee/br/Inbox` }, { label: t("Create Birth-Registration"), link: `/digit-ui/citizen/br/birth` } ] } return <EmployeeModuleCard {...propsForModuleCard} /> }; export default BRCard; |
Inbox Screen:-
On Birth-Registration card we add the Inbox link so once we open the inbox will able to see the search , filter ,create and all List of birth-register application.
...
Code Block |
---|
import { PrivateRoute } from "@egovernments/digit-ui-react-components"; import React from "react"; import { useTranslation } from "react-i18next"; import { Link, Switch, useLocation , Route } from "react-router-dom"; import Inbox from "./Inbox/Inbox"; import ResponseEmployee from "./ResponseEmployee"; const EmployeeApp = ({ path, url, userType ,tenants, parentRoute }) => { const { t } = useTranslation(); const BRManageApplication = Digit?.ComponentRegistryService?.getComponent("BRManageApplication"); const RegisterDetails = Digit?.ComponentRegistryService?.getComponent("RegisterDetails"); const Inbox = Digit?.ComponentRegistryService?.getComponent("Inbox"); const ResponseEmployee = Digit?.ComponentRegistryService?.getComponent("ResponseEmployee"); return ( <Switch> <React.Fragment> <div className="ground-container"> <PrivateRoute path={`${path}/responseemp`} component={() => <ResponseEmployee/>} /> <PrivateRoute path={`${path}/inbox`} component={props => <Inbox {...props} tenants={tenants} parentRoute={parentRoute} />} /> {/* <PrivateRoute path={`${path}/details`} component={() => <RegisterDetails />} /> */} <PrivateRoute path={`${path}/myapplication`} component={() => <BRManageApplication />} /> <PrivateRoute path={`${path}/details/:id`} component={(props) => <RegisterDetails {...props} />} /> </div> </React.Fragment> </Switch> ); }; export default EmployeeApp; |
...
Register Details:-
On Index Page, we are able to see the table in the table Baby’s First name is accessible we can click on which information we need to see in detail. for the details page, we are creating the Register Details Page.
...