diff --git a/src/components/modal/v2/parts/BodyContent.jsx b/src/components/modal/v2/parts/BodyContent.jsx index f7e99be58a..0c652d0088 100644 --- a/src/components/modal/v2/parts/BodyContent.jsx +++ b/src/components/modal/v2/parts/BodyContent.jsx @@ -8,8 +8,7 @@ import { useXProps, useScroll, useDidUpdateEffect, - useTransitionState, - isLander + useTransitionState } from '../lib'; import Header from './Header'; import { LongTerm, ShortTerm, NoInterest, ProductList, PayIn1 } from './views'; @@ -66,14 +65,6 @@ const BodyContent = () => { const use5Dot1Design = productMeta?.['v5.1']; const useNewCheckoutDesign = features?.includes('new-checkout-design') ? 'true' : 'false'; - // 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 shouldShowPreapprovedBadge = productMeta?.showPreapprovedBadge; const preapprovalHeadline = content?.preapproval?.preapprovalHeadline; @@ -127,14 +118,7 @@ const BodyContent = () => { openProductList={openProductList} /> ), - [VIEW_IDS.PRODUCT_LIST]: ( - - ) + [VIEW_IDS.PRODUCT_LIST]: }; // IMPORTANT: These elements cannot be nested inside of other elements. @@ -171,11 +155,7 @@ const BodyContent = () => { use5Dot1Design={use5Dot1Design} /> )} -
+
{viewComponents[viewName]}
diff --git a/src/components/modal/v2/parts/Calculator.jsx b/src/components/modal/v2/parts/Calculator.jsx index 5a2c83b6f8..a5273d490f 100644 --- a/src/components/modal/v2/parts/Calculator.jsx +++ b/src/components/modal/v2/parts/Calculator.jsx @@ -198,22 +198,15 @@ const Calculator = ({ return (
-
+

{!hasInitialAmount ? genericTitle || title : title}

{aprDisclaimer[0].aprDisclaimer}
)} {(country === 'ES' || country === 'IT') && ( -
- {genericDisclaimer} -
+
{genericDisclaimer}
)}
); diff --git a/src/components/modal/v2/parts/Donut.jsx b/src/components/modal/v2/parts/Donut.jsx index 11bc098f0d..479d117554 100644 --- a/src/components/modal/v2/parts/Donut.jsx +++ b/src/components/modal/v2/parts/Donut.jsx @@ -10,28 +10,21 @@ const Donut = ({ radiusV4andV5 = 5.5, viewBox = `0 0 ${2 * cx} ${2 * cy}`, style = { fontSize: '0.375rem' }, - segmentStrokeWidth = 5.8, currentNum = 0, numOfPayments = 4, timeStamp, periodicPayment, qualifying, - useV4Design, - useV5Design, - use5Dot1Design, useNewCheckoutDesign }) => { const percentage = (currentNum / numOfPayments) * 100; - const segStrokeWidth = segmentStrokeWidth ?? strokeWidth; const strokeDasharray = `${percentage} ${100 - percentage}`; - const isV4OrV5Design = useV4Design === 'true' || useV5Design === 'true'; - const isV5Design = useV5Design === 'true'; const segments = ( - + - + {segments} @@ -78,20 +64,12 @@ const Donut = ({ {/* eslint-disable-next-line jsx-a11y/aria-role */} {isQualifying && periodicPayment !== '-' && ( -