Skip to content

Commit

Permalink
chore: unnecessary types removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Mar 20, 2024
1 parent 5f5a02a commit bc4ac73
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/CardTheme.res
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ let getVariables = (str, dict, default, logger) => {
let getAppearance = (
str,
dict,
default: OrcaPaymentPage.CardThemeType.themeClass,
defaultRules: OrcaPaymentPage.CardThemeType.themeClass => JSON.t,
default: CardThemeType.themeClass,
defaultRules: CardThemeType.themeClass => JSON.t,
logger,
) => {
dict
Expand Down Expand Up @@ -341,8 +341,8 @@ let getFonts = (str, dict, logger) => {
}
let itemToObjMapper = (
dict,
default: OrcaPaymentPage.CardThemeType.themeClass,
defaultRules: OrcaPaymentPage.CardThemeType.themeClass => JSON.t,
default: CardThemeType.themeClass,
defaultRules: CardThemeType.themeClass => JSON.t,
logger,
) => {
unknownKeysWarning(
Expand Down
4 changes: 1 addition & 3 deletions src/Components/AddressPaymentInput.res
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ let make = (~paymentType, ~className="") => {

let checkPostalValidity = (
postal: RecoilAtomTypes.field,
setPostal: (
OrcaPaymentPage.RecoilAtomTypes.field => OrcaPaymentPage.RecoilAtomTypes.field
) => unit,
setPostal: (RecoilAtomTypes.field => RecoilAtomTypes.field) => unit,
regex,
) => {
if RegExp.test(regex->RegExp.fromString, postal.value) && postal.value !== "" && regex !== "" {
Expand Down
4 changes: 1 addition & 3 deletions src/Components/PaymentDropDownField.res
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ open RecoilAtoms
@react.component
let make = (
~value: RecoilAtomTypes.field,
~setValue: (
OrcaPaymentPage.RecoilAtomTypes.field => OrcaPaymentPage.RecoilAtomTypes.field
) => unit,
~setValue: (RecoilAtomTypes.field => RecoilAtomTypes.field) => unit,
~fieldName,
~options,
~disabled=false,
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/PaymentHelpers.res
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ let rec intentCall = (
~headers: Dict.t<string>=?,
~method: Fetch.method,
unit,
) => OrcaPaymentPage.Promise.t<Fetch.Response.t>,
) => Promise.t<Fetch.Response.t>,
~uri,
~headers,
~bodyStr,
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/Utils.res
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ let handlePostMessageEvents = (
~complete,
~empty,
~paymentType,
~loggerState: OrcaPaymentPage.OrcaLogger.loggerMake,
~loggerState: OrcaLogger.loggerMake,
) => {
if complete && paymentType !== "" {
loggerState.setLogInfo(
Expand Down

0 comments on commit bc4ac73

Please sign in to comment.