Skip to content

Commit

Permalink
feat(payout-link): add input validations for payment methods in Colle…
Browse files Browse the repository at this point in the history
…ctWidget (#460)

Co-authored-by: Pritish Budhiraja <[email protected]>
  • Loading branch information
kashif-m and PritishBudhiraja authored Jul 16, 2024
1 parent 75c85ab commit c2686cf
Show file tree
Hide file tree
Showing 8 changed files with 678 additions and 308 deletions.
115 changes: 93 additions & 22 deletions public/icons/orca.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/App.res
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ let make = () => {
let url = RescriptReactRouter.useUrl()
let (integrateError, setIntegrateErrorError) = React.useState(() => false)
let setLoggerState = Recoil.useSetRecoilState(RecoilAtoms.loggerAtom)
let {showLoader} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom)

let paymentMode = CardUtils.getQueryParamsDictforKey(url.search, "componentName")
let paymentType = paymentMode->CardThemeType.getPaymentMode
Expand All @@ -20,12 +19,7 @@ let make = () => {
let renderFullscreen = switch paymentMode {
| "paymentMethodCollect" =>
<LoaderController paymentMode setIntegrateErrorError logger initTimestamp>
<React.Suspense
fallback={<RenderIf condition={showLoader}>
<PaymentElementShimmer />
</RenderIf>}>
<PaymentMethodCollectElementLazy integrateError logger />
</React.Suspense>
<PaymentMethodCollectElement integrateError logger />
</LoaderController>
| _ =>
switch fullscreenMode {
Expand Down
Loading

0 comments on commit c2686cf

Please sign in to comment.