From ff5d897d8dac67ff5c17eee9e56da5797097c2cb Mon Sep 17 00:00:00 2001 From: Jeeva Ramachandran <120017870+JeevaRamu0104@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:35:01 +0530 Subject: [PATCH] chore: add profile level views in payment page (#1290) Co-authored-by: Riddhiagrawal001 <50551695+Riddhiagrawal001@users.noreply.github.com> --- src/container/TransactionContainer.res | 61 +++++++++++++++++++ .../AuthModule/UserInfo/UserInfoProvider.res | 6 +- .../AuthModule/UserInfo/UserInfoTypes.res | 1 + .../AuthModule/UserInfo/UserInfoUtils.res | 1 + src/entryPoints/HyperSwitchApp.res | 55 ++--------------- src/screens/APIUtils/APIUtils.res | 32 +++++++--- src/screens/APIUtils/APIUtilsTypes.res | 1 + src/screens/Disputes/Disputes.res | 14 ++++- src/screens/HSwitchRemoteFilter.res | 12 ++-- src/screens/Hooks/OMPSwitchHooks.res | 12 ++-- src/screens/OMPSwitch/OMPSwitchHelper.res | 30 +++++++++ src/screens/OMPSwitch/OMPSwitchTypes.res | 6 ++ src/screens/Order/OrderUIUtils.res | 11 ++++ src/screens/Order/Orders.res | 19 +++--- src/screens/Payouts/PayoutsList.res | 16 +++-- src/screens/Refunds/Refund.res | 17 ++++-- .../SwitchMerchant/SwitchMerchantListHook.res | 2 +- 17 files changed, 206 insertions(+), 90 deletions(-) create mode 100644 src/container/TransactionContainer.res diff --git a/src/container/TransactionContainer.res b/src/container/TransactionContainer.res new file mode 100644 index 000000000..4dfc66422 --- /dev/null +++ b/src/container/TransactionContainer.res @@ -0,0 +1,61 @@ +@react.component +let make = () => { + open HSwitchUtils + open HyperswitchAtom + let url = RescriptReactRouter.useUrl() + let userPermissionJson = Recoil.useRecoilValueFromAtom(userPermissionAtom) + let {userInfo: {transactionEntity}} = React.useContext(UserInfoProvider.defaultContext) + let {payOut} = featureFlagAtom->Recoil.useRecoilValueFromAtom +