From a294d7779c2a6f303f08a73ca96ee3e3f690bce0 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Tue, 23 Jan 2024 12:25:10 +0530 Subject: [PATCH] chore: added access block for codebase --- .../hyperswitch/HyperSwitchApp.res | 7 ++--- .../Developer/APIKeys/KeyManagement.res | 6 +++-- .../PaymentSettings/PaymentSettingsList.res | 5 ++-- .../PaymentSettingsListEntity.res | 27 ++++++++++--------- .../BusinessMapping/BusinessProfile.res | 4 ++- .../HyperSwitch/Surcharge/Surcharge.res | 8 +++--- .../ThreeDSFlow/HSwitchThreeDS.res | 8 +++--- src/utils/AccessControl.res | 2 +- 8 files changed, 39 insertions(+), 28 deletions(-) diff --git a/src/entryPoints/hyperswitch/HyperSwitchApp.res b/src/entryPoints/hyperswitch/HyperSwitchApp.res index 8f90ad3b9..929e51945 100644 --- a/src/entryPoints/hyperswitch/HyperSwitchApp.res +++ b/src/entryPoints/hyperswitch/HyperSwitchApp.res @@ -361,11 +361,11 @@ let make = () => { /> | list{"recon"} => - + | list{"sdk"} => - + | list{"3ds"} => @@ -397,7 +397,8 @@ let make = () => { | list{"business-profiles"} => - + | list{"quick-start"} => determineQuickStartPageState() diff --git a/src/screens/HyperSwitch/Developer/APIKeys/KeyManagement.res b/src/screens/HyperSwitch/Developer/APIKeys/KeyManagement.res index 0300a362c..5e332e724 100644 --- a/src/screens/HyperSwitch/Developer/APIKeys/KeyManagement.res +++ b/src/screens/HyperSwitch/Developer/APIKeys/KeyManagement.res @@ -177,19 +177,21 @@ module ApiKeyAddBtn = { @react.component let make = (~getAPIKeyDetails) => { let mixpanelEvent = MixpanelHook.useSendEvent() + let userPermissionJson = Recoil.useRecoilValueFromAtom(HyperswitchAtom.userPermissionAtom) let (showModal, setShowModal) = React.useState(_ => false) let initialValues = Dict.make() initialValues->Dict.set("expiration", Never->getStringFromRecordType->Js.Json.string) <> -