diff --git a/src/PaymentMethodCollectElement.res b/src/PaymentMethodCollectElement.res index 632c39705..a34c19427 100644 --- a/src/PaymentMethodCollectElement.res +++ b/src/PaymentMethodCollectElement.res @@ -182,7 +182,8 @@ let make = (~integrateError, ~logger) => { switch flow { | PayoutLinkInitiate => { - let endpoint = ApiEndpoint.getApiEndPoint() + // let endpoint = ApiEndpoint.getApiEndPoint() + let endpoint = "http://localhost:8080" let uri = `${endpoint}/payouts/${payoutId}/confirm` // Create payment method open Promise @@ -321,9 +322,12 @@ let make = (~integrateError, ~logger) => { }) ->ignore -
+
@@ -358,13 +362,13 @@ let make = (~integrateError, ~logger) => {
-
- {switch secondsUntilRedirect { - | Some(seconds) => - React.string("Redirecting in " ++ seconds->Int.toString ++ " seconds ...") - | None => React.null - }} -
+ {switch secondsUntilRedirect { + | Some(seconds) => +
+ {React.string("Redirecting in " ++ seconds->Int.toString ++ " seconds ...")} +
+ | None => React.null + }}
} @@ -373,7 +377,7 @@ let make = (~integrateError, ~logger) => { } else {
+ lg:flex-row"> {switch flow { | PayoutLinkInitiate => if showStatus {