From a3f533e19aa1684adf72b47f72fc9a20e9ad0835 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Tue, 23 Jan 2024 16:21:35 +0530 Subject: [PATCH] chore: permission based block --- .../HomePageOverviewComponent.res | 9 +- src/screens/HyperSwitch/Home/HomeV2.res | 191 +++++++++++------- .../UserManagement/PermissionUtils.res | 2 +- 3 files changed, 123 insertions(+), 79 deletions(-) diff --git a/src/screens/HyperSwitch/Analytics/HomePageOverview/HomePageOverviewComponent.res b/src/screens/HyperSwitch/Analytics/HomePageOverview/HomePageOverviewComponent.res index 541bf598d..7d8de7d1e 100644 --- a/src/screens/HyperSwitch/Analytics/HomePageOverview/HomePageOverviewComponent.res +++ b/src/screens/HyperSwitch/Analytics/HomePageOverview/HomePageOverviewComponent.res @@ -6,6 +6,7 @@ module ConnectorOverview = { let (screenState, setScreenState) = React.useState(_ => PageLoaderWrapper.Loading) let (configuredConnectors, setConfiguredConnectors) = React.useState(_ => []) let fetchConnectorListResponse = ConnectorUtils.useFetchConnectorList() + let userPermissionJson = Recoil.useRecoilValueFromAtom(HyperswitchAtom.userPermissionAtom) let getConnectorList = async () => { open LogicUtils @@ -71,8 +72,9 @@ module ConnectorOverview = { ->Js.Int.toString} Active Processors`->React.string}

-