feat: clinic approval flow

This commit is contained in:
2025-05-20 10:43:33 +05:30
parent 970f8ebe1c
commit 8d2d652630
50 changed files with 1929 additions and 1070 deletions
+2
View File
@@ -12,6 +12,7 @@ import ClinicSetup from "../views/ClinicSetup";
import ClinicTranscripts from "../views/ClinicTranscripts";
import ContractManagement from "../views/ContractManagement";
import MasterDataManagement from "../views/MasterData";
import PaymentManagement from "../views/PaymentManagement";
export const routesData = [
{
@@ -26,6 +27,7 @@ export const routesData = [
{ path: "/clinicSetup", component: ClinicSetup },
{ path: "/transcripts", component: ClinicTranscripts },
{ path: "/masterData", component: MasterDataManagement },
{ path: "/payment-management", component: PaymentManagement },
],
isProtected: true,
},
+3 -3
View File
@@ -9,11 +9,11 @@ const withPermission = (Component) => (props) => {
const companyStatus = useSelector(
(state) => state?.login?.user?.company?.status
);
const { isBSAdmin } = false;
// const { isBSAdmin } = isBSPortal();
const { isSuperAdmin } = false;
// const { isSuperAdmin } = isBSPortal();
// If the user is a BS Admin, render the component without any checks
if (isBSAdmin === true) {
if (isSuperAdmin === true) {
return <Component {...props} />;
}