From f9f3896eedfe734af8149f37bd97401111a459f0 Mon Sep 17 00:00:00 2001 From: Riddhi Agrawal Date: Thu, 7 Dec 2023 18:16:10 +0530 Subject: [PATCH] fix: Payment settings added under developers --- src/entryPoints/hyperswitch/HyperSwitchApp.res | 2 +- src/entryPoints/hyperswitch/SidebarValues.res | 12 ++++++------ .../HyperSwitch/Developer/Webhooks/WebhookList.res | 4 ++-- .../Developer/Webhooks/WebhookListEntity.res | 2 +- .../HyperSwitch/Developer/Webhooks/Webhooks.res | 4 ++-- .../BusinessMapping/BusinessMappingEntity.res | 3 --- 6 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/entryPoints/hyperswitch/HyperSwitchApp.res b/src/entryPoints/hyperswitch/HyperSwitchApp.res index 90afc8d86..7e1c2a98b 100644 --- a/src/entryPoints/hyperswitch/HyperSwitchApp.res +++ b/src/entryPoints/hyperswitch/HyperSwitchApp.res @@ -318,7 +318,7 @@ let make = () => { - | list{"webhooks", ...remainingPath} => + | list{"payment-settings", ...remainingPath} => { @@ -243,8 +243,8 @@ let developers = (isDevelopersEnabled, userRole, systemMetrics) => { icon: "developer", showSection: true, links: isInternalUser && systemMetrics - ? [apiKeys, webhooks, systemMetric] - : [apiKeys, webhooks], + ? [apiKeys, paymentSettings, systemMetric] + : [apiKeys, paymentSettings], }) : emptyComponent } diff --git a/src/screens/HyperSwitch/Developer/Webhooks/WebhookList.res b/src/screens/HyperSwitch/Developer/Webhooks/WebhookList.res index c98f0f820..5a6591686 100644 --- a/src/screens/HyperSwitch/Developer/Webhooks/WebhookList.res +++ b/src/screens/HyperSwitch/Developer/Webhooks/WebhookList.res @@ -16,11 +16,11 @@ let make = (
`/webhooks/${profile.profile_id}` + profile => `/payment-settings/${profile.profile_id}` }, (), ) diff --git a/src/screens/HyperSwitch/Developer/Webhooks/Webhooks.res b/src/screens/HyperSwitch/Developer/Webhooks/Webhooks.res index c7a618ce1..f6e9911ad 100644 --- a/src/screens/HyperSwitch/Developer/Webhooks/Webhooks.res +++ b/src/screens/HyperSwitch/Developer/Webhooks/Webhooks.res @@ -78,8 +78,8 @@ let make = (~webhookOnly=false, ~showFormOnly=false, ~profileId="") => { `/webhooks/${profile.profile_id}` - }, (), )