Skip to content

Commit

Permalink
fix: Payment settings added under developers
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhiagrawal001 committed Dec 7, 2023
1 parent 8807933 commit f9f3896
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/entryPoints/hyperswitch/HyperSwitchApp.res
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ let make = () => {
<SystemMetricsAnalytics />
</AnalyticsUrlUpdaterContext>
</UIUtils.RenderIf>
| list{"webhooks", ...remainingPath} =>
| list{"payment-settings", ...remainingPath} =>
<EntityScaffold
entityName="WebHooks"
remainingPath
Expand Down
12 changes: 6 additions & 6 deletions src/entryPoints/hyperswitch/SidebarValues.res
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ let systemMetric = SubLevelLink({
searchOptions: [("View System Metrics", "")],
})

let webhooks = SubLevelLink({
name: "Webhooks",
link: `/webhooks`,
let paymentSettings = SubLevelLink({
name: "Payment Settings",
link: `/payment-settings`,
access: ReadWrite,
searchOptions: [("View Webhooks", "")],
searchOptions: [("View payment settings", "")],
})

let developers = (isDevelopersEnabled, userRole, systemMetrics) => {
Expand All @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions src/screens/HyperSwitch/Developer/Webhooks/WebhookList.res
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ let make = (
<div className="relative h-full">
<div className="flex flex-col-reverse md:flex-col">
<PageUtils.PageHeading
title="Webhooks"
title="Payment settings"
subTitle="Set up and monitor transaction webhooks for real-time notifications."
/>
<LoadedTable
title="Webhooks"
title="Payment settings"
hideTitle=true
resultsPerPage=7
visibleColumns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let webhookProfileTableEntity = EntityType.makeEntity(
~dataKey="",
~getCell,
~getShowLink={
profile => `/webhooks/${profile.profile_id}`
profile => `/payment-settings/${profile.profile_id}`
},
(),
)
4 changes: 2 additions & 2 deletions src/screens/HyperSwitch/Developer/Webhooks/Webhooks.res
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ let make = (~webhookOnly=false, ~showFormOnly=false, ~profileId="") => {
<BreadCrumbNavigation
path=[
{
title: "Webhooks",
link: "/webhooks",
title: "Payment Settings",
link: "/payment-settings",
},
]
currentPageTitle={businessProfileDetails.profile_name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,5 @@ let businessProfileTableEntity = EntityType.makeEntity(
~getHeading,
~dataKey="",
~getCell,
~getShowLink={
profile => `/webhooks/${profile.profile_id}`
},
(),
)

0 comments on commit f9f3896

Please sign in to comment.