diff --git a/src/Components/SaveDetailsCheckbox.res b/src/Components/AnimatedCheckbox.res similarity index 68% rename from src/Components/SaveDetailsCheckbox.res rename to src/Components/AnimatedCheckbox.res index 703c58858..7a6fd1726 100644 --- a/src/Components/SaveDetailsCheckbox.res +++ b/src/Components/AnimatedCheckbox.res @@ -1,14 +1,12 @@ @react.component -let make = (~isChecked, ~setIsChecked, ~list: PaymentMethodsRecord.list) => { +let make = (~isChecked, ~setIsChecked) => { let {themeObj} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom) - let showFields = Recoil.useRecoilValueFromAtom(RecoilAtoms.showCardFieldsAtom) - let {business} = Recoil.useRecoilValueFromAtom(RecoilAtoms.optionAtom) - let css = `.container { display: flex; cursor: pointer; position: relative; justify-content: center; + align-items: center; } .container input { @@ -48,21 +46,13 @@ let make = (~isChecked, ~setIsChecked, ~list: PaymentMethodsRecord.list) => { ? ("Checkbox--checked", "CheckboxInput--checked", "CheckboxLabel--checked") : ("", "", "") - let valueToBeRendered = if showFields { - localeString.saveCardDetails - } else if business.name !== "" { - localeString.cardTerms(business.name) - } else { - localeString.cardTerms(list.merchant_name) - } -