Skip to content

Commit

Permalink
fix: chunk loading issue - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Sep 17, 2024
1 parent 1dfb5a5 commit 4fbc290
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 7 additions & 1 deletion src/PaymentElementRenderer.resi
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
@react.component
let default: (
let make: (
~paymentType: CardThemeType.mode,
~cardProps: CardUtils.cardProps,
~expiryProps: CardUtils.expiryProps,
~cvcProps: CardUtils.cvcProps,
) => React.element
let default: props<
CardThemeType.mode,
CardUtils.cardProps,
CardUtils.expiryProps,
CardUtils.cvcProps,
> => React.element
1 change: 0 additions & 1 deletion src/PaymentElementRendererLazy.res

This file was deleted.

10 changes: 1 addition & 9 deletions src/RenderPaymentMethods.res
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,7 @@ let make = (
| KlarnaElement
| ExpressCheckoutElement
| Payment =>
<ReusableReactSuspense
loaderComponent={<RenderIf condition={showLoader}>
{paymentType->Utils.getIsWalletElementPaymentType
? <WalletShimmer />
: <PaymentElementShimmer />}
</RenderIf>}
componentName="PaymentElementRendererLazy">
<PaymentElementRendererLazy paymentType cardProps expiryProps cvcProps />
</ReusableReactSuspense>
<PaymentElementRenderer paymentType cardProps expiryProps cvcProps />
| CardNumberElement =>
<InputField
isValid=isCardValid
Expand Down

0 comments on commit 4fbc290

Please sign in to comment.