Skip to content

Commit

Permalink
style: minor ui styling (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakksham7 authored Nov 14, 2024
1 parent d7480ab commit ece9689
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/Components/DynamicFields.res
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,6 @@ let make = (
style={
border: {isSpacedInnerLayout ? `1px solid ${themeObj.borderColor}` : ""},
borderRadius: {isSpacedInnerLayout ? themeObj.borderRadius : ""},
margin: {isSpacedInnerLayout ? `10px 0` : ""},
}>
<div
className="billing-details-text"
Expand Down
4 changes: 2 additions & 2 deletions src/Payments/BankDebitModal.res
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ let make = (~setModalData, ~paymentType: CardThemeType.mode) => {
}

let dynamicFieldsModalBody =
<>
<div className="flex flex-col item-center gap-5">
<DynamicFields
paymentType paymentMethod="bank_debit" paymentMethodType="sepa" setRequiredFieldsBody
/>
<PayNowButton onClickHandler label="Done" />
</>
</div>

let nonDynamicFieldsModalBody =
<>
Expand Down
8 changes: 2 additions & 6 deletions src/Payments/CardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ let make = (
options.displaySavedPaymentMethodsCheckbox &&
!isBancontact

let nicknameFieldClassName = conditionsForShowingSaveCardCheckbox ? "pt-2" : "pt-5"

let compressedLayoutStyleForCvcError =
innerLayout === Compressed && cvcError->String.length > 0 ? "!border-l-0" : ""

Expand Down Expand Up @@ -334,16 +332,14 @@ let make = (
isBancontact
/>
<RenderIf condition={conditionsForShowingSaveCardCheckbox}>
<div className="pt-4 pb-2 flex items-center justify-start">
<div className="flex items-center justify-start">
<SaveDetailsCheckbox
isChecked=isSaveCardsChecked setIsChecked=setIsSaveCardsChecked
/>
</div>
</RenderIf>
<RenderIf condition={!options.hideCardNicknameField && isCustomerAcceptanceRequired}>
<div className={`pb-2 ${nicknameFieldClassName}`}>
<NicknamePaymentInput paymentType value=nickname setValue=setNickname />
</div>
<NicknamePaymentInput paymentType value=nickname setValue=setNickname />
</RenderIf>
</div>
</div>
Expand Down

0 comments on commit ece9689

Please sign in to comment.