Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: chunk loading issue - 1 (#623) #631

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading