diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57f4251f6..c56bc8d1e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,15 @@
+# [0.41.0](https://github.com/juspay/hyperswitch-web/compare/v0.40.0...v0.41.0) (2024-04-16)
+
+
+### Bug Fixes
+
+* **hyper.res:** prefetch assets instead of preload ([#291](https://github.com/juspay/hyperswitch-web/issues/291)) ([703fd50](https://github.com/juspay/hyperswitch-web/commit/703fd505e686d9c897e82bb0109a280484fc1d6b))
+
+
+### Features
+
+* mandate Changes for the Saved card screen & SDK Button Loader changes ([#289](https://github.com/juspay/hyperswitch-web/issues/289)) ([0e5b5ab](https://github.com/juspay/hyperswitch-web/commit/0e5b5abd588732481bfbafb84080b3297bf993c5))
+
# [0.40.0](https://github.com/juspay/hyperswitch-web/compare/v0.39.4...v0.40.0) (2024-04-15)
diff --git a/Hyperswitch-React-Demo-App/webpack.dev.js b/Hyperswitch-React-Demo-App/webpack.dev.js
index 9368ac4af..e950ece5b 100644
--- a/Hyperswitch-React-Demo-App/webpack.dev.js
+++ b/Hyperswitch-React-Demo-App/webpack.dev.js
@@ -16,7 +16,7 @@ let devServer = {
},
},
headers: {
- "Cache-Control": "max-age=31536000,must-revalidate",
+ "Cache-Control": "must-revalidate",
},
};
diff --git a/package-lock.json b/package-lock.json
index 762e746eb..65d00fc54 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "orca-payment-page",
- "version": "0.40.0",
+ "version": "0.41.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "orca-payment-page",
- "version": "0.40.0",
+ "version": "0.41.0",
"hasInstallScript": true,
"dependencies": {
"@aws-sdk/client-cloudfront": "^3.414.0",
diff --git a/package.json b/package.json
index d21dae5bc..0b6ba3b31 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "orca-payment-page",
- "version": "0.40.0",
+ "version": "0.41.0",
"main": "index.js",
"private": true,
"dependencies": {
diff --git a/src/Components/AnimatedCheckbox.res b/src/Components/SaveDetailsCheckbox.res
similarity index 68%
rename from src/Components/AnimatedCheckbox.res
rename to src/Components/SaveDetailsCheckbox.res
index 7a6fd1726..703c58858 100644
--- a/src/Components/AnimatedCheckbox.res
+++ b/src/Components/SaveDetailsCheckbox.res
@@ -1,12 +1,14 @@
@react.component
-let make = (~isChecked, ~setIsChecked) => {
+let make = (~isChecked, ~setIsChecked, ~list: PaymentMethodsRecord.list) => {
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 {
@@ -46,13 +48,21 @@ let make = (~isChecked, ~setIsChecked) => {
? ("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)
+ }
+