feat: clinic approval flow
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user