From e23badcbb788347f5fc2a24aba19fe4e02308022 Mon Sep 17 00:00:00 2001 From: Lokesh Jain Date: Thu, 21 Dec 2023 12:58:28 +0530 Subject: [PATCH] refactor: cleanup --- src/screens/HyperSwitch/RoutingRevamp/AdvancedRouting.res | 3 ++- .../HyperSwitch/RoutingRevamp/Previewers/RulePreviewer.res | 3 +-- src/screens/HyperSwitch/Surcharge/Surcharge.res | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/screens/HyperSwitch/RoutingRevamp/AdvancedRouting.res b/src/screens/HyperSwitch/RoutingRevamp/AdvancedRouting.res index 0a6f6d94c..85675fa05 100644 --- a/src/screens/HyperSwitch/RoutingRevamp/AdvancedRouting.res +++ b/src/screens/HyperSwitch/RoutingRevamp/AdvancedRouting.res @@ -79,9 +79,10 @@ module Add3DSCondition = { module AddSurchargeCondition = { let classStyle = "flex justify-center relative py-2 h-fit min-w-min hover:bg-jp-2-light-gray-100 focus:outline-none rounded-md items-center border-2 border-border_gray border-opacity-50 text-jp-2-light-gray-1200 px-4 transition duration-[250ms] ease-out-[cubic-bezier(0.33, 1, 0.68, 1)] overflow-hidden" + //keep the rate only for now. let options: array = [ {value: "rate", label: "Rate"}, - {value: "amount", label: "Amount"}, + // {value: "amount", label: "Amount"}, ] @react.component diff --git a/src/screens/HyperSwitch/RoutingRevamp/Previewers/RulePreviewer.res b/src/screens/HyperSwitch/RoutingRevamp/Previewers/RulePreviewer.res index 3081e3aa8..82f92b4f9 100644 --- a/src/screens/HyperSwitch/RoutingRevamp/Previewers/RulePreviewer.res +++ b/src/screens/HyperSwitch/RoutingRevamp/Previewers/RulePreviewer.res @@ -42,10 +42,9 @@ let make = (~ruleInfo: algorithmData, ~isFrom3ds=false, ~isFromSurcharge=false) let headingText = `Rule ${string_of_int(index + 1)}` let marginStyle = index === ruleInfo.rules->Js.Array2.length - 1 ? "mt-2" : "my-2" let threeDsType = rule.connectorSelection.override_3ds->Belt.Option.getWithDefault("") - Js.log2("lokiii before", rule) + let surchargeType = rule.connectorSelection.surcharge_details->SurchargeUtils.getDefaultSurchargeType - Js.log2("lokii", surchargeType)
diff --git a/src/screens/HyperSwitch/Surcharge/Surcharge.res b/src/screens/HyperSwitch/Surcharge/Surcharge.res index 1fb523e36..eea321287 100644 --- a/src/screens/HyperSwitch/Surcharge/Surcharge.res +++ b/src/screens/HyperSwitch/Surcharge/Surcharge.res @@ -223,7 +223,6 @@ let make = () => { } let redirectToNewRule = () => { - Js.log("lokiiiii redirecting") setPageView(_ => NEW) }