Skip to content

Commit

Permalink
revert: chunk loading issue - 1 (#623) (#631)
Browse files Browse the repository at this point in the history
Co-authored-by: Shiva Nandan <[email protected]>
  • Loading branch information
ArushKapoorJuspay and seekshiva authored Sep 20, 2024
1 parent 81934d5 commit f719ff5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/PaymentElementRenderer.res
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ let make = (
: <PaymentElement cardProps expiryProps cvcProps paymentType />
}
}

let default = make
2 changes: 1 addition & 1 deletion src/PaymentElementRenderer.resi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@react.component
let make: (
let default: (
~paymentType: CardThemeType.mode,
~cardProps: CardUtils.cardProps,
~expiryProps: CardUtils.expiryProps,
Expand Down
1 change: 1 addition & 0 deletions src/PaymentElementRendererLazy.res
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let make = React.lazy_(() => Js.import(PaymentElementRenderer.default))
4 changes: 2 additions & 2 deletions src/RenderPaymentMethods.res
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ let make = (
? <WalletShimmer />
: <PaymentElementShimmer />}
</RenderIf>}
componentName="PaymentElementRenderer">
<PaymentElementRenderer paymentType cardProps expiryProps cvcProps />
componentName="PaymentElementRendererLazy">
<PaymentElementRendererLazy paymentType cardProps expiryProps cvcProps />
</ReusableReactSuspense>
| CardNumberElement =>
<InputField
Expand Down

0 comments on commit f719ff5

Please sign in to comment.