From a3bb4feedb12fc6d3dcbc2cf845e90bb26fef7dd Mon Sep 17 00:00:00 2001
From: Pritish Budhiraja <77892330+PritishBudhiraja@users.noreply.github.com>
Date: Tue, 19 Dec 2023 14:48:45 +0530
Subject: [PATCH] feat: add scrollbar and white space scrollable (#111)
---
.../hyperswitch/HyperSwitchApp.res | 252 +++++++++---------
1 file changed, 127 insertions(+), 125 deletions(-)
diff --git a/src/entryPoints/hyperswitch/HyperSwitchApp.res b/src/entryPoints/hyperswitch/HyperSwitchApp.res
index 0ee20d991..3a1d68004 100644
--- a/src/entryPoints/hyperswitch/HyperSwitchApp.res
+++ b/src/entryPoints/hyperswitch/HyperSwitchApp.res
@@ -213,144 +213,146 @@ let make = () => {
-
- {switch url.path {
- | list{"home"} =>
-
- {featureFlagDetails.quickStart ? : }
-
- | list{"fraud-risk-management", ...remainingPath} =>
-
+ className="w-full h-full p-6 md:px-16 md:pb-16 pt-[3rem] overflow-scroll md:overflow-y-scroll md:overflow-x-hidden flex flex-col gap-10 show-scrollbar">
+
+
+ {switch url.path {
+ | list{"home"} =>
+
+ {featureFlagDetails.quickStart ? : }
+
+ | list{"fraud-risk-management", ...remainingPath} =>
+
+ }
+ renderNewForm={() => }
+ renderShow={_ => }
+ />
+
+ | list{"connectors", ...remainingPath} =>
}
- renderNewForm={() => }
- renderShow={_ => }
+ renderList={() => }
+ renderNewForm={() => }
+ renderShow={_ => }
/>
-
- | list{"connectors", ...remainingPath} =>
- }
- renderNewForm={() => }
- renderShow={_ => }
- />
- | list{"payoutconnectors", ...remainingPath} =>
- }
- renderNewForm={() => }
- renderShow={_ => }
- />
- | list{"payments", ...remainingPath} =>
-
+ | list{"payoutconnectors", ...remainingPath} =>
}
+ renderNewForm={() => }
+ renderShow={_ => }
+ />
+ | list{"payments", ...remainingPath} =>
+
+ }
+ renderShow={id => }
+ />
+
+ | list{"refunds", ...remainingPath} =>
+
+ }
+ renderShow={id => }
+ />
+
+ | list{"disputes", ...remainingPath} =>
+ }
- renderShow={id => }
+ renderList={() => }
+ renderShow={id => }
/>
-
- | list{"refunds", ...remainingPath} =>
-
+ | list{"routing", ...remainingPath} =>
}
+ renderShow={routingType => }
+ />
+ | list{"users", "invite-users"} =>
+ | list{"users", ...remainingPath} =>
+ }
- renderShow={id => }
+ renderList={() => }
+ renderShow={_ => }
/>
-
- | list{"disputes", ...remainingPath} =>
- }
- renderShow={id => }
- />
- | list{"routing", ...remainingPath} =>
- }
- renderShow={routingType => }
- />
- | list{"users", "invite-users"} =>
- | list{"users", ...remainingPath} =>
- }
- renderShow={_ => }
- />
- | list{"analytics-payments"} =>
-
-
-
- | list{"analytics-refunds"} =>
-
-
-
- | list{"analytics-user-journey"} =>
-
-
-
- | list{"monitoring"} => comingSoonPage
- | list{"developer-api-keys"} =>
- | list{"developer-system-metrics"} =>
- Js.String2.includes("internal_") &&
- featureFlagDetails.systemMetrics}>
-
-
+ | list{"analytics-payments"} =>
+
+
+
+ | list{"analytics-refunds"} =>
+
+
+
+ | list{"analytics-user-journey"} =>
+
+
-
- | list{"payment-settings", ...remainingPath} =>
- }
- renderShow={profileId =>
- }
- />
- | list{"recon"} =>
-
-
-
- | list{"sdk"} =>
-
-
-
- | list{"3ds"} =>
- | list{"account-settings"} =>
-
-
-
- | list{"account-settings", "profile"} =>
- | list{"business-details"} =>
-
-
-
- | list{"business-profiles"} =>
-
-
-
- | list{"quick-start"} => determineQuickStartPageState()
- | list{"woocommerce"} => determineWooCommerce()
- | list{"stripe-plus-paypal"} => determineStripePlusPayPal()
+ | list{"monitoring"} => comingSoonPage
+ | list{"developer-api-keys"} =>
+ | list{"developer-system-metrics"} =>
+ Js.String2.includes("internal_") &&
+ featureFlagDetails.systemMetrics}>
+
+
+
+
+ | list{"payment-settings", ...remainingPath} =>
+ }
+ renderShow={profileId =>
+ }
+ />
+ | list{"recon"} =>
+
+
+
+ | list{"sdk"} =>
+
+
+
+ | list{"3ds"} =>
+ | list{"account-settings"} =>
+
+
+
+ | list{"account-settings", "profile"} =>
+ | list{"business-details"} =>
+
+
+
+ | list{"business-profiles"} =>
+
+
+
+ | list{"quick-start"} => determineQuickStartPageState()
+ | list{"woocommerce"} => determineWooCommerce()
+ | list{"stripe-plus-paypal"} => determineStripePlusPayPal()
- | _ =>
- RescriptReactRouter.replace(`${hyperSwitchFEPrefix}/home`)
-
- }}
-
+ | _ =>
+ RescriptReactRouter.replace(`${hyperSwitchFEPrefix}/home`)
+
+ }}
+
+