Skip to content

Commit 1a4f265

Browse files
authored
refactor: formated main branch code (#915)
1 parent 7dd9d92 commit 1a4f265

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

src/BubblegumTheme.res

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ let bubblegumRules = theme =>
5858
"color": theme.colorTextSecondary,
5959
"alignItems": "start",
6060
"transition": "background .15s ease, border .15s ease, box-shadow .15s ease",
61-
"boxShadow": "0px 3px 10px rgba(18, 42, 66, 0.08)"
61+
"boxShadow": "0px 3px 10px rgba(18, 42, 66, 0.08)",
6262
},
6363
".Tab:hover": {
6464
"border": "0",
6565
"color": theme.colorText,
6666
},
67-
".Tab:focus":{
68-
"border": "0"
67+
".Tab:focus": {
68+
"border": "0",
6969
},
7070
".Label": {
7171
"color": theme.colorText,
@@ -144,7 +144,7 @@ let bubblegumRules = theme =>
144144
"borderRadius": theme.borderRadius,
145145
// "border": `1px solid ${theme.borderColor}`,
146146
"borderColor": "transparent",
147-
"boxShadow": "0px 3px 10px rgba(18, 42, 66, 0.08)"
147+
"boxShadow": "0px 3px 10px rgba(18, 42, 66, 0.08)",
148148
},
149149
".BlockDivider": {
150150
"backgroundColor": "#ebebeb",
@@ -209,8 +209,8 @@ let bubblegumRules = theme =>
209209
"fontWeight": theme.fontWeightLight,
210210
"fontSize": theme.fontSizeLg,
211211
},
212-
".CheckboxInput":{
213-
"boxShadow": "0px 3px 10px rgba(18, 42, 66, 0.08)"
212+
".CheckboxInput": {
213+
"boxShadow": "0px 3px 10px rgba(18, 42, 66, 0.08)",
214214
},
215215
".PaymentMethodsHeaderLabel": {
216216
"color": theme.colorText,

src/FormViewJourney.res

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ let make = (
107107
| Card => {
108108
let newPmt = Card(Debit)
109109
let payoutDynamicFields =
110-
getPayoutDynamicFields(enabledPaymentMethodsWithDynamicFields, newPmt)->Option.getOr(
111-
defaultPayoutDynamicFields(~pmt=newPmt),
112-
)
110+
getPayoutDynamicFields(
111+
enabledPaymentMethodsWithDynamicFields,
112+
newPmt,
113+
)->Option.getOr(defaultPayoutDynamicFields(~pmt=newPmt))
113114
setActivePmt(_ => newPmt)
114115
payoutDynamicFields.address
115116
->Option.map(address => {

src/Hooks/CommonHooks.res

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
type contentRect = {
2-
height: float,
3-
}
1+
type contentRect = {height: float}
42

53
type element = {
64
mutable getAttribute: string => string,

src/Types/PaypalSDKTypes.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ let getOrderDetails = (orderDetails, paymentType) => {
179179
}
180180
}
181181

182-
let shippingAddressItemToObjMapper=dict=>{
182+
let shippingAddressItemToObjMapper = dict => {
183183
recipientName: dict->Utils.getOptionString("recipientName"),
184184
line1: dict->Utils.getOptionString("line1"),
185185
line2: dict->Utils.getOptionString("line2"),
@@ -188,4 +188,4 @@ let shippingAddressItemToObjMapper=dict=>{
188188
postalCode: dict->Utils.getOptionString("postalCode"),
189189
state: dict->Utils.getOptionString("state"),
190190
phone: dict->Utils.getOptionString("phone"),
191-
}
191+
}

src/Types/SessionsType.res

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ open Utils
33
type wallet = Gpay | Paypal | Klarna | ApplePay | SamsungPay | Paze | ClickToPay | NONE
44

55
type tokenCategory =
6-
ApplePayObject | GooglePayThirdPartyObject | SamsungPayObject | PazeObject | ClickToPayObject | Others
6+
| ApplePayObject
7+
| GooglePayThirdPartyObject
8+
| SamsungPayObject
9+
| PazeObject
10+
| ClickToPayObject
11+
| Others
712

813
type paymentType = Wallet | Others
914

src/Utilities/PaymentBody.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ let klarnaSDKbody = (~token, ~connectors) => [
371371

372372
let klarnaCheckoutBody = (~connectors) => {
373373
open Utils
374-
let checkoutBody=[]->Utils.getJsonFromArrayOfJson
374+
let checkoutBody = []->Utils.getJsonFromArrayOfJson
375375
let payLaterBody = [("klarna_checkout", checkoutBody)]->getJsonFromArrayOfJson
376376
let paymentMethodData = [("pay_later", payLaterBody)]->getJsonFromArrayOfJson
377377
[

src/hyper-loader/PaymentSessionMethods.res

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let getCustomerSavedPaymentMethods = (
88
~endpoint,
99
~logger,
1010
~customPodUri,
11-
~redirectionFlags
11+
~redirectionFlags,
1212
) => {
1313
open ApplePayTypes
1414
open GooglePayType
@@ -116,7 +116,7 @@ let getCustomerSavedPaymentMethods = (
116116
~clientSecret,
117117
~logger,
118118
~customPodUri,
119-
~redirectionFlags
119+
~redirectionFlags,
120120
)
121121
}
122122
| None =>
@@ -165,7 +165,7 @@ let getCustomerSavedPaymentMethods = (
165165
~clientSecret,
166166
~logger,
167167
~customPodUri,
168-
~redirectionFlags
168+
~redirectionFlags,
169169
)->then(val => {
170170
val->resolvePromise
171171
resolve()
@@ -234,7 +234,7 @@ let getCustomerSavedPaymentMethods = (
234234
~clientSecret,
235235
~logger,
236236
~customPodUri,
237-
~redirectionFlags
237+
~redirectionFlags,
238238
)
239239
}
240240

@@ -309,7 +309,7 @@ let getCustomerSavedPaymentMethods = (
309309
~clientSecret,
310310
~logger,
311311
~customPodUri,
312-
~redirectionFlags
312+
~redirectionFlags,
313313
)
314314
}
315315
| None =>

0 commit comments

Comments
 (0)