From 3eb2e2eff718c7054504aa84730736f2c796350d Mon Sep 17 00:00:00 2001 From: Arush Date: Tue, 12 Mar 2024 01:58:58 +0530 Subject: [PATCH] fix: comments addressed --- src/Components/PayNowButton.res | 7 +------ src/LoaderController.res | 2 -- src/Types/PaymentType.res | 3 --- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Components/PayNowButton.res b/src/Components/PayNowButton.res index 9b2dca7fc..def4bbdfb 100644 --- a/src/Components/PayNowButton.res +++ b/src/Components/PayNowButton.res @@ -37,11 +37,6 @@ let make = ( isExpiryValid->Option.getOr(false) && areRequiredFieldsValidValue - let buttonText = - sdkHandleConfirmPayment.buttonText->String.length > 0 - ? sdkHandleConfirmPayment.buttonText - : localeString.payNowButton - let confirmPayload = sdkHandleConfirmPayment->PaymentBody.confirmPayloadForSDKButton let handleOnClick = _ => { @@ -84,7 +79,7 @@ let make = ( {if showLoader { } else { - buttonText->React.string + localeString.payNowButton->React.string }} diff --git a/src/LoaderController.res b/src/LoaderController.res index 288e92f7d..0ca9ac8e4 100644 --- a/src/LoaderController.res +++ b/src/LoaderController.res @@ -1,6 +1,4 @@ open Utils -external toJson: 'a => Js.Json.t = "%identity" - @react.component let make = (~children, ~paymentMode, ~setIntegrateErrorError, ~logger) => { open RecoilAtoms diff --git a/src/Types/PaymentType.res b/src/Types/PaymentType.res index 28d5ff445..2fb2afd3c 100644 --- a/src/Types/PaymentType.res +++ b/src/Types/PaymentType.res @@ -132,7 +132,6 @@ type billingAddress = { type sdkHandleConfirmPayment = { handleConfirm: bool, - buttonText: string, confirmParams: ConfirmType.confirmParams, } @@ -255,7 +254,6 @@ let defaultBillingAddress = { let defaultSdkHandleConfirmPayment = { handleConfirm: false, - buttonText: "Pay Now", confirmParams: ConfirmType.defaultConfirm, } @@ -884,7 +882,6 @@ let getConfirmParams = dict => { let getSdkHandleConfirmPaymentProps = dict => { handleConfirm: dict->getBool("handleConfirm", false), - buttonText: dict->getString("buttonText", "Pay Now"), confirmParams: dict->getDictfromDict("confirmParams")->getConfirmParams, }