Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d1d26fe
update v4 design references to v5
surekhaw Jul 8, 2024
ebd72d1
update useV4design content references to v5
surekhaw Jul 8, 2024
4e15ca7
add v5 specific content
surekhaw Jul 9, 2024
8073dca
initial v5 style updates
surekhaw Jul 9, 2024
770f998
add v5design flag
surekhaw Jul 9, 2024
2e5deec
update v5 styles for short term modals
surekhaw Jul 9, 2024
b39aa38
fix typo
surekhaw Jul 9, 2024
ad3139b
fix header
surekhaw Jul 9, 2024
280401c
update product list to v5
surekhaw Jul 9, 2024
50e3710
xo modal v5 updates
surekhaw Jul 9, 2024
c392833
update DE v5 modals
surekhaw Jul 9, 2024
e7b39d6
remove unnecessary v5 content
surekhaw Jul 10, 2024
2b168cc
add v4design support for checkout
surekhaw Jul 10, 2024
7366da7
adjust v5 stying
surekhaw Jul 10, 2024
2bacb0d
hard code xo v4design true
surekhaw Jul 10, 2024
e2e00cf
extend DE calculator to full width
surekhaw Jul 11, 2024
fa22f6c
v5 style updates
surekhaw Jul 11, 2024
6ae7205
expand DE mobile calculator to full width
surekhaw Jul 11, 2024
3fe6e69
update v5.0 styles
surekhaw Jul 11, 2024
9c28c09
fix functional test donut selector
surekhaw Jul 15, 2024
874f64f
fix functional test donut selector
surekhaw Jul 15, 2024
1587056
chore(snapshots): Update Snapshots [skip ci]
surekhaw Jul 15, 2024
f0ee503
fix DE offer outline
surekhaw Jul 16, 2024
2fee30b
Merge branch 'update-modals-v5design' of https://github.com/surekhaw/…
surekhaw Jul 16, 2024
09f3f90
fix last donut position
surekhaw Jul 18, 2024
d8a381f
fix mobile donut dash spacing
surekhaw Jul 18, 2024
1a803f2
chore(snapshots): Update Snapshots [skip ci]
surekhaw Jul 22, 2024
2cd0ea5
update accordion style
surekhaw Jul 23, 2024
894a4b0
Merge branch 'update-modals-v5design' of https://github.com/surekhaw/…
surekhaw Jul 23, 2024
7accdd2
update pay monthly style
surekhaw Jul 23, 2024
eb86aca
update Pi4 donuts
surekhaw Jul 23, 2024
987aee8
update product list style
surekhaw Jul 23, 2024
11cdad5
update DE long term accordion spacing
surekhaw Jul 23, 2024
abe0003
update offer accordion style
surekhaw Jul 24, 2024
91870fc
revert v5instructions content
surekhaw Jul 29, 2024
34ea0e5
chore(snapshots): Update Snapshots [skip ci]
surekhaw Jul 29, 2024
9f52ecc
merge develop
surekhaw Aug 15, 2024
bd47b11
Merge branch 'update-modals-v5design' of https://github.com/surekhaw/…
surekhaw Aug 15, 2024
6d8c64a
update IT modal snapshots
surekhaw Aug 15, 2024
278adcc
chore(snapshots): Update Snapshots [skip ci]
surekhaw Aug 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/modals/AU/short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/DE/long_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"product": "PAY_LATER_LONG_TERM",
"offerCountry": "DE",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/DE/long_term_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"product": "PAY_LATER_LONG_TERM",
"offerCountry": "DE",
"language": "en-DE",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/DE/pay_in_1.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"meta": {
"offerCountry": "DE",
"useV4Design": "false",
"useV5Design": "false",
"periodicPayment": "{formattedPeriodicPayment}",
"product": "PAY_LATER_PAY_IN_1",
"minAmount": "{minAmount}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/DE/pay_in_1_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"offerCountry": "DE",
"language": "en-DE",
"useV4Design": "false",
"useV5Design": "false",
"periodicPayment": "{formattedPeriodicPayment}",
"product": "PAY_LATER_PAY_IN_1",
"minAmount": "{minAmount}",
Expand Down
53 changes: 27 additions & 26 deletions content/modals/DE/product_list.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
{
"meta": {
"product": "PRODUCT_LIST"
},
"content": {
"headline": "<span aria-hidden='true'>Jetzt kaufen, <br/>später bezahlen</span><span class='sr-only'>Jetzt kaufen, später bezahlen</span>",
"disclosure": "Es gelten die Nutzungsbedingungen. Vorbehaltlich Kreditwürdigkeitsprüfung. Für weitere Informationen zur Bezahlung nach 30 Tagen oder PayPal Ratenzahlung wählen Sie eine der obigen Optionen.",
"instructions": {
"payLater": "Wählen Sie <strong>PayPal</strong>, um <strong>“Später Bezahlen”</strong> zu nutzen."
},
"productTiles": {
"payLater": [
{
"header": "Bezahlen Sie nach 30 Tagen",
"body": "Erhalten Sie mehr Zeit, um Ihren Einkauf zu bezahlen.",
"viewName": "PAY_LATER_PAY_IN_1"
},
{
"header": "PayPal Ratenzahlung",
"body": "Zahlen Sie Ihren Einkauf in monatlichen Raten.",
"viewName": "PAY_LATER_LONG_TERM"
}
]
}
}
}
{
"meta": {
"product": "PRODUCT_LIST",
"useV5Design": "false"
},
"content": {
"headline": "<span aria-hidden='true'>Jetzt kaufen, <br/>später bezahlen</span><span class='sr-only'>Jetzt kaufen, später bezahlen</span>",
"disclosure": "Es gelten die Nutzungsbedingungen. Vorbehaltlich Kreditwürdigkeitsprüfung. Für weitere Informationen zur Bezahlung nach 30 Tagen oder PayPal Ratenzahlung wählen Sie eine der obigen Optionen.",
"instructions": {
"payLater": "Wählen Sie <strong>PayPal</strong>, um <strong>“Später Bezahlen”</strong> zu nutzen."
},
"productTiles": {
"payLater": [
{
"header": "Bezahlen Sie nach 30 Tagen",
"body": "Erhalten Sie mehr Zeit, um Ihren Einkauf zu bezahlen.",
"viewName": "PAY_LATER_PAY_IN_1"
},
{
"header": "PayPal Ratenzahlung",
"body": "Zahlen Sie Ihren Einkauf in monatlichen Raten.",
"viewName": "PAY_LATER_LONG_TERM"
}
]
}
}
}
1 change: 1 addition & 0 deletions content/modals/ES/short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/ES/short_term_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
1 change: 1 addition & 0 deletions content/modals/FR/short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/FR/short_term_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
1 change: 0 additions & 1 deletion content/modals/GB/short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV4Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
1 change: 1 addition & 0 deletions content/modals/IT/short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"offerCountry": "IT",
"creditProductIdentifier": "{credit_product_identifier}",
"creditType": "{credit_type}",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
1 change: 1 addition & 0 deletions content/modals/IT/short_term_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"offerCountry": "IT",
"creditProductIdentifier": "{credit_product_identifier}",
"creditType": "{credit_type}",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
7 changes: 6 additions & 1 deletion content/modals/US/PL2GO/pl2go_long_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"product": "PAY_LATER_LONG_TERM",
"offerCountry": "US",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down Expand Up @@ -33,6 +33,11 @@
"Shop almost anywhere after receiving a single-use virtual card number.",
"Pay back what you spend in monthly installments. $0 due today."
],
"v5Instructions": [
"Explore plan options. No sign-up fees or late fees.",
"Choose a plan and pay nothing today.",
"use autopay for your payments. It's easy!"
],
"disclosure": [
"Pay Monthly is subject to consumer credit approval. Payments may change based on shipping, taxes, updates to your purchase, or missed payments. Availability depends on the merchant and may not be available for subscriptions or recurring payments. Pay Monthly is currently not available to residents of AK, HI, or NV</span><span class='sr-only'>Alaska, Hawaii, or Nevada</span>. You must be 18 years old or older to apply. Missed payments may have an impact on your credit score. The lender for Pay Monthly is WebBank. PayPal, Inc. (NMLS #910457): <span aria-hidden='true'>CT</span><span class='sr-only'>Connecticut</span> Small Loan Licensee. <span aria-hidden='true'>RI</span><span class='sr-only'>Rhode Island</span> Loan Broker Licensee. <span aria-hidden='true'>VT</span><span class='sr-only'>Vermont</span> Loan Solicitation Licensee. <span aria-hidden='true'>VT</span><span class='sr-only'>Vermont</span> residents:",
["Find more disclosures ", "https://www.paypal.com/us/digital-wallet/ways-to-pay/buy-now-pay-later"],
Expand Down
2 changes: 1 addition & 1 deletion content/modals/US/PL2GO/pl2go_short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
7 changes: 6 additions & 1 deletion content/modals/US/PLHub/plhub_long_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"product": "PAY_LATER_LONG_TERM",
"offerCountry": "US",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down Expand Up @@ -33,6 +33,11 @@
"Get a decision in seconds and complete your purchase.",
"Use autopay for your payments. It's easy!"
],
"v5Instructions": [
"Explore plan options. No sign-up fees or late fees.",
"Choose a plan and pay nothing today.",
"use autopay for your payments. It's easy!"
],
"disclosure": [
"Pay Monthly is subject to consumer credit approval. Payments may change based on shipping, taxes, updates to your purchase, or missed payments. Availability depends on the merchant and may not be available for subscriptions or recurring payments. Pay Monthly is currently not available to residents of <span aria-hidden='true'>AK, HI, or NV</span><span class='sr-only'>Alaska, Hawaii, or Nevada</span>. You must be 18 years old or older to apply. Missed payments may have an impact on your credit score. The lender for Pay Monthly is WebBank. PayPal, Inc. (NMLS #910457): <span aria-hidden='true'>CT</span><span class='sr-only'>Connecticut</span> Small Loan Licensee. <span aria-hidden='true'>RI</span><span class='sr-only'>Rhode Island</span> Loan Broker Licensee. <span aria-hidden='true'>VT</span><span class='sr-only'>Vermont</span> Loan Solicitation Licensee. <span aria-hidden='true'>VT</span><span class='sr-only'>Vermont</span> residents:",
["Find more disclosures ", "https://www.paypal.com/us/digital-wallet/ways-to-pay/buy-now-pay-later"],
Expand Down
2 changes: 1 addition & 1 deletion content/modals/US/PLHub/plhub_short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV4Design": "false",
"useV5Design": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
"qualifying_offer": "${eval(CREDIT_OFFERS_DS.qualifying_offer ? CREDIT_OFFERS_DS.qualifying_offer : 'false')}",
Expand Down
7 changes: 6 additions & 1 deletion content/modals/US/v2_long_term.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"meta": {
"product": "PAY_LATER_LONG_TERM",
"useV4Design": "false",
"useV5Design": "false",
"offerCountry": "US",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
Expand Down Expand Up @@ -33,6 +33,11 @@
"Get a decision in seconds and complete your purchase.",
"Use autopay for your payments. It's easy!"
],
"v5Instructions": [
"Explore plan options. No sign-up fees or late fees.",
"Choose a plan and pay nothing today.",
"Use autopay for your payments. It's easy!"
],
"disclosure": [
"Pay Monthly is subject to consumer credit approval. Payments may change based on shipping, taxes, updates to your purchase, or missed payments. Availability depends on the merchant and may not be available for subscriptions or recurring payments. Pay Monthly is currently not available to residents of <span aria-hidden='true'>AK, HI, or NV</span><span class='sr-only'>Alaska, Hawaii, or Nevada</span>. You must be 18 years old or older to apply. Missed payments may have an impact on your credit score. The lender for Pay Monthly is WebBank. PayPal, Inc. (NMLS #910457): <span aria-hidden='true'>CT</span><span class='sr-only'>Connecticut</span> Small Loan Licensee. <span aria-hidden='true'>RI</span><span class='sr-only'>Rhode Island</span> Loan Broker Licensee. <span aria-hidden='true'>VT</span><span class='sr-only'>Vermont</span> Loan Solicitation Licensee. <span aria-hidden='true'>VT</span><span class='sr-only'>Vermont</span> residents:",
["Find more disclosures ", "https://www.paypal.com/us/digital-wallet/ways-to-pay/buy-now-pay-later"],
Expand Down
2 changes: 1 addition & 1 deletion content/modals/US/v2_long_term_xo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"meta": {
"product": "PAY_LATER_LONG_TERM",
"useV4Design": "false",
"useV4Design": "true",
"offerCountry": "US",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/US/v2_product_list.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"meta": {
"product": "PRODUCT_LIST",
"useV4Design": "false",
"useV5Design": "false",
"offerCountry": "US"
},
"content": {
Expand Down
2 changes: 1 addition & 1 deletion content/modals/US/v2_short_term.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"meta": {
"product": "PAY_LATER_SHORT_TERM",
"useV4Design": "false",
"useV5Design": "false",
"periodicPayment": "{formattedPeriodicPayment}",
"minAmount": "{minAmount}",
"maxAmount": "{maxAmount}",
Expand Down
2 changes: 1 addition & 1 deletion content/modals/US/v2_short_term_xo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"qualifying": "{qualifying_offer}",
"amount": "{transaction_amount}",
"apr": "{apr}",
"useV4Design": "false",
"useV4Design": "true",
"preapproved": "false",
"variables": {
"transaction_amount": "${eval(transaction_amount ? transaction_amount : '-')}",
Expand Down
12 changes: 9 additions & 3 deletions src/components/modal/v2/parts/BodyContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@ const BodyContent = () => {
const isQualifying = productMeta?.qualifying;

const useV4Design = productMeta?.useV4Design === 'true';
const useV5Design = productMeta?.useV5Design === 'true';
const useNewCheckoutDesign = features?.includes('new-checkout-design') ? 'true' : 'false';

// add v4Design class to root html to update lander specific styles to v4
// add v4Design or v5Design class to root html to update lander specific styles to v4 or v5 respectively
const documentClassName = document.documentElement.className;
if (useV4Design && isLander) {
document.documentElement.className = `${documentClassName} v4Design`;
}
if (useV5Design && isLander) {
document.documentElement.className = `${documentClassName} v5Design`;
}
const isPreapproved = productMeta?.preapproved;
const preapprovalHeadline = content?.preapproval?.preapprovalHeadline;
const preapprovalSubHeadline = content?.preapproval?.preapprovalSubHeadline;
Expand Down Expand Up @@ -117,8 +121,9 @@ const BodyContent = () => {
openProductList={openProductList}
/>
),
[VIEW_IDS.PRODUCT_LIST]: <ProductList content={content} setViewName={setViewName} />
[VIEW_IDS.PRODUCT_LIST]: <ProductList content={content} useV5Design={useV5Design} setViewName={setViewName} />
};

// IMPORTANT: These elements cannot be nested inside of other elements.
// They are using very precise CSS position sticky rules that require this
// specific adjacent DOM structure
Expand Down Expand Up @@ -148,10 +153,11 @@ const BodyContent = () => {
closeButtonLabel={closeButtonLabel}
viewName={viewName}
useV4Design={useV4Design}
useV5Design={useV5Design}
/>
)}
<div
className={`content__container ${useV4Design ? 'v4Design' : ''} ${
className={`content__container ${useV4Design ? 'v4Design' : ''} ${useV5Design ? 'v5Design' : ''} ${
useNewCheckoutDesign === 'true' ? 'checkout' : ''
}`}
>
Expand Down
24 changes: 18 additions & 6 deletions src/components/modal/v2/parts/Calculator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ const getError = ({ offers, error = '' }, isLoading, calculator, amount, country
return null;
};

const Calculator = ({ setExpandedState, calculator, aprDisclaimer, useV4Design, useNewCheckoutDesign }) => {
const Calculator = ({
setExpandedState,
calculator,
aprDisclaimer,
useV4Design,
useV5Design,
useNewCheckoutDesign
}) => {
const { view, value, isLoading, submit, changeInput } = useCalculator({ autoSubmit: true });
const { amount } = useXProps();
const { country, views } = useServerData();
Expand Down Expand Up @@ -183,15 +190,19 @@ const Calculator = ({ setExpandedState, calculator, aprDisclaimer, useV4Design,
};

return (
<div className={`calculator ${useNewCheckoutDesign === 'true' ? 'checkout' : ''}`}>
<div
className={`calculator ${useNewCheckoutDesign === 'true' ? 'checkout' : ''} ${
useV5Design === 'true' ? 'v5Design' : ''
}`}
>
<form
className={`form ${useV4Design === 'true' ? 'v4Design' : ''} ${
useNewCheckoutDesign === 'true' ? 'checkout' : ''
}`}
useV5Design === 'true' ? 'v5Design' : ''
} ${useNewCheckoutDesign === 'true' ? 'checkout' : ''}`}
onSubmit={submit}
>
<h4 className="title">{title}</h4>
<div className="input__wrapper transitional">
<div className={`input__wrapper transitional ${useV5Design === 'true' ? 'v5Design' : ''}`}>
<label htmlFor="purchase-amount" className={`input__label ${country}`}>
{renderInputLabelOnEmptyField(country)}
</label>
Expand All @@ -217,6 +228,7 @@ const Calculator = ({ setExpandedState, calculator, aprDisclaimer, useV4Design,
isLoading={isLoading}
aprDisclaimer={aprDisclaimer}
useV4Design={useV4Design}
useV5Design={useV5Design}
useNewCheckoutDesign={useNewCheckoutDesign}
/>
</div>
Expand All @@ -225,7 +237,7 @@ const Calculator = ({ setExpandedState, calculator, aprDisclaimer, useV4Design,
<div
className={`finance-terms__disclaimer ${
!(hasInitialAmount || hasUsedInputField) || error ? 'no-amount' : ''
}`}
} ${useV5Design === 'true' ? 'v5Design' : ''}`}
>
{aprDisclaimer[0].aprDisclaimer}
</div>
Expand Down
Loading