diff --git a/src/CardUtils.res b/src/CardUtils.res index 20d6196e3..8843e523a 100644 --- a/src/CardUtils.res +++ b/src/CardUtils.res @@ -586,7 +586,7 @@ let setRightIconForCvc = (~cardEmpty, ~cardInvalid, ~color, ~cardComplete) => { if cardEmpty { } else if cardInvalid { -
+
} else if cardComplete { diff --git a/src/Components/Accordion.res b/src/Components/Accordion.res index 37de1d309..b9f540c64 100644 --- a/src/Components/Accordion.res +++ b/src/Components/Accordion.res @@ -36,21 +36,20 @@ let make = ( )
setSelectedOption(_ => paymentOption.paymentMethodName)}>
+ style={columnGap: themeObj.spacingUnit}> diff --git a/src/Components/AccordionContainer.res b/src/Components/AccordionContainer.res index a2fd9cf77..3a9ba173d 100644 --- a/src/Components/AccordionContainer.res +++ b/src/Components/AccordionContainer.res @@ -20,35 +20,34 @@ module Loader = {
Belt.Int.toString} - style={ReactDOMStyle.make( - ~minWidth="80px", - ~minHeight="60px", - ~overflowWrap="hidden", - ~borderRadius={borderStyle}, - ~border=`1px solid ${themeObj.borderColor}`, - ~borderBottomStyle={ + style={ + minWidth: "80px", + minHeight: "60px", + overflowWrap: "hidden", + borderRadius: {borderStyle}, + border: `1px solid ${themeObj.borderColor}`, + borderBottomStyle: { (i == cardShimmerCount - 2 && !layoutClass.spacedAccordionItems) || layoutClass.spacedAccordionItems ? "solid" : "hidden" }, - ~borderTopStyle={i == 0 && !layoutClass.spacedAccordionItems ? "hidden" : "solid"}, - ~width="100%", - ~paddingLeft="25px", - ~marginBottom=layoutClass.spacedAccordionItems ? themeObj.spacingAccordionItem : "", - ~cursor="pointer", - (), - )}> + borderTopStyle: {i == 0 && !layoutClass.spacedAccordionItems ? "hidden" : "solid"}, + width: "100%", + paddingLeft: "25px", + marginBottom: layoutClass.spacedAccordionItems ? themeObj.spacingAccordionItem : "", + cursor: "pointer", + }>
@@ -122,12 +121,11 @@ let make = (~paymentOptions: array, ~checkoutEle: React.element) => {
+ style={ + marginTop: themeObj.spacingAccordionItem, + width: "-webkit-fill-available", + marginBottom: themeObj.spacingAccordionItem, + }> {cardOptionDetails ->Array.mapWithIndex((payOption, i) => { let isActive = payOption.paymentMethodName == selectedOption @@ -167,19 +165,17 @@ let make = (~paymentOptions: array, ~checkoutEle: React.element) => {