diff --git a/CHANGELOG.md b/CHANGELOG.md index 48d862153..65de3d68d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +## [0.43.2](https://github.com/juspay/hyperswitch-web/compare/v0.43.1...v0.43.2) (2024-04-18) + + +### Bug Fixes + +* Added envLoggingUrl in webpack ([#294](https://github.com/juspay/hyperswitch-web/issues/294)) ([88587ac](https://github.com/juspay/hyperswitch-web/commit/88587ac725c03fa1362e3ad79222a290f4d86cdb)) + +## [0.43.1](https://github.com/juspay/hyperswitch-web/compare/v0.43.0...v0.43.1) (2024-04-18) + + +### Bug Fixes + +* **threedsmethod:** changed Three DS method API call to hidden Form Post ([#302](https://github.com/juspay/hyperswitch-web/issues/302)) ([e42a5a3](https://github.com/juspay/hyperswitch-web/commit/e42a5a3b0f68ba3264ffbe6d7afde41b1cc01d9d)) + +# [0.43.0](https://github.com/juspay/hyperswitch-web/compare/v0.42.6...v0.43.0) (2024-04-18) + + +### Features + +* mandate changes for Saved Card flow ([#309](https://github.com/juspay/hyperswitch-web/issues/309)) ([648ea87](https://github.com/juspay/hyperswitch-web/commit/648ea87d8e2b0c989edbe7949b43a2c1e70e70cc)) + ## [0.42.6](https://github.com/juspay/hyperswitch-web/compare/v0.42.5...v0.42.6) (2024-04-17) diff --git a/package-lock.json b/package-lock.json index 36a57e68a..57e7a8205 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.42.6", + "version": "0.43.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.42.6", + "version": "0.43.2", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-cloudfront": "^3.414.0", diff --git a/package.json b/package.json index 6f3d563ec..fc2f1b50d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.42.6", + "version": "0.43.2", "main": "index.js", "private": true, "dependencies": { diff --git a/src/Components/AnimatedCheckbox.res b/src/Components/SaveDetailsCheckbox.res similarity index 70% rename from src/Components/AnimatedCheckbox.res rename to src/Components/SaveDetailsCheckbox.res index 7a6fd1726..838fe86c8 100644 --- a/src/Components/AnimatedCheckbox.res +++ b/src/Components/SaveDetailsCheckbox.res @@ -1,12 +1,14 @@ @react.component 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 { @@ -42,17 +44,23 @@ let make = (~isChecked, ~setIsChecked) => { setIsChecked(_ => value) } let {localeString} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom) - let (checkboxState, checkedState, checkBoxLabelSate) = isChecked + let (checkboxState, checkedState, checkBoxLabelState) = isChecked ? ("Checkbox--checked", "CheckboxInput--checked", "CheckboxLabel--checked") : ("", "", "") + let saveCardCheckboxLabel = if showFields { + localeString.saveCardDetails + } else { + localeString.cardTerms(business.name) + } +