-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactored lazy loading (#484)
- Loading branch information
1 parent
a62635c
commit b56d391
Showing
22 changed files
with
23 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
open LazyUtils | ||
|
||
type props = { | ||
paymentType: CardThemeType.mode, | ||
cardProps: CardUtils.cardProps, | ||
expiryProps: CardUtils.expiryProps, | ||
cvcProps: CardUtils.cvcProps, | ||
} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./PaymentElementRenderer.bs.js")) | ||
let make = React.lazy_(() => Js.import(PaymentElementRenderer.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {} | ||
let make: props => React.element = reactLazy(() => import_("./PaymentManagement.bs.js")) | ||
let make = React.lazy_(() => Js.import(PaymentManagement.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
open LazyUtils | ||
|
||
type props = { | ||
integrateError: bool, | ||
logger: OrcaLogger.loggerMake, | ||
} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./PaymentMethodCollectElement.bs.js")) | ||
let make = React.lazy_(() => Js.import(PaymentMethodCollectElement.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./ACHBankDebit.bs.js")) | ||
let make = React.lazy_(() => Js.import(ACHBankDebit.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./ACHBankTransfer.bs.js")) | ||
let make = React.lazy_(() => Js.import(ACHBankTransfer.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
open LazyUtils | ||
|
||
type props = { | ||
sessionObj: option<JSON.t> | ||
} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./ApplePay.bs.js")) | ||
let make = React.lazy_(() => Js.import(ApplePay.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./BacsBankDebit.bs.js")) | ||
let make = React.lazy_(() => Js.import(BacsBankDebit.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
let default: CardThemeType.mode => React.element | ||
@react.component | ||
let default: (~paymentType: CardThemeType.mode) => React.element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./BacsBankTransfer.bs.js")) | ||
let make = React.lazy_(() => Js.import(BacsBankTransfer.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./BecsBankDebit.bs.js")) | ||
let make = React.lazy_(() => Js.import(BecsBankDebit.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./Boleto.bs.js")) | ||
let make = React.lazy_(() => Js.import(Boleto.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
open LazyUtils | ||
|
||
type props = { | ||
sessionObj: option<SessionsType.token>, | ||
thirdPartySessionObj: option<JSON.t>, | ||
} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./GPay.bs.js")) | ||
let make = React.lazy_(() => Js.import(GPay.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./KlarnaPayment.bs.js")) | ||
let make = React.lazy_(() => Js.import(KlarnaPayment.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {sessionObj: SessionsType.token} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./KlarnaSDK.bs.js")) | ||
let make = React.lazy_(() => Js.import(KlarnaSDK.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./PayPal.bs.js")) | ||
let make = React.lazy_(() => Js.import(PayPal.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
open LazyUtils | ||
|
||
type props = { | ||
paymentType: CardThemeType.mode, | ||
paymentMethodName: string, | ||
} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./PaymentMethodsWrapper.bs.js")) | ||
let make = React.lazy_(() => Js.import(PaymentMethodsWrapper.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {sessionObj: SessionsType.token, paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./PaypalSDK.bs.js")) | ||
let make = React.lazy_(() => Js.import(PaypalSDK.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./SepaBankDebit.bs.js")) | ||
let make = React.lazy_(() => Js.import(SepaBankDebit.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
open LazyUtils | ||
|
||
type props = {paymentType: CardThemeType.mode} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./SepaBankTransfer.bs.js")) | ||
let make = React.lazy_(() => Js.import(SepaBankTransfer.default)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
open LazyUtils | ||
|
||
type props = { | ||
paymentType: CardThemeType.mode, | ||
cardProps: CardUtils.cardProps, | ||
expiryProps: CardUtils.expiryProps, | ||
cvcProps: CardUtils.cvcProps, | ||
zipProps: CardUtils.zipProps, | ||
handleElementFocus: bool => unit, | ||
isFocus: bool, | ||
} | ||
|
||
let make: props => React.element = reactLazy(() => import_("./SingleLineCardPayment.bs.js")) | ||
let make = React.lazy_(() => Js.import(SingleLineCardPayment.default)) |
This file was deleted.
Oops, something went wrong.