From 11d2636a7835c87381c4395a72f26139e49efebd Mon Sep 17 00:00:00 2001 From: suweinberg Date: Tue, 19 Nov 2024 16:59:11 -0800 Subject: [PATCH] remove ezp components --- .../modal/v1/content/US-EZP/parts/Content.jsx | 28 ------ .../content/US-EZP/parts/ContentWrapper.jsx | 7 +- .../modal/v1/content/US-EZP/parts/EZP.jsx | 93 ------------------- src/components/modal/v1/parts/Header.jsx | 3 +- src/components/modal/v1/parts/Icon.jsx | 39 -------- 5 files changed, 3 insertions(+), 167 deletions(-) delete mode 100644 src/components/modal/v1/content/US-EZP/parts/Content.jsx delete mode 100644 src/components/modal/v1/content/US-EZP/parts/EZP.jsx diff --git a/src/components/modal/v1/content/US-EZP/parts/Content.jsx b/src/components/modal/v1/content/US-EZP/parts/Content.jsx deleted file mode 100644 index 987252a1fc..0000000000 --- a/src/components/modal/v1/content/US-EZP/parts/Content.jsx +++ /dev/null @@ -1,28 +0,0 @@ -/** @jsx h */ -import { h } from 'preact'; - -import * as NI from './NI'; -import * as EZP from './EZP'; -import Tabs from '../../../parts/Tabs'; - -const tabsMap = { - EZP: { - title: 'Easy Payments', - product: 'EZP', - header: , - body: - }, - NI: { - title: '6 Months Special Financing', - product: 'NI', - header: , - body: - } -}; - -// EZP modal will always have EZP + NI -const Content = () => { - return ; -}; - -export default Content; diff --git a/src/components/modal/v1/content/US-EZP/parts/ContentWrapper.jsx b/src/components/modal/v1/content/US-EZP/parts/ContentWrapper.jsx index 716bc316f6..5a272171dc 100644 --- a/src/components/modal/v1/content/US-EZP/parts/ContentWrapper.jsx +++ b/src/components/modal/v1/content/US-EZP/parts/ContentWrapper.jsx @@ -1,7 +1,6 @@ /** @jsx h */ import { h } from 'preact'; import { useRef, useState, useEffect } from 'preact/hooks'; -import Content from './Content'; import Header from '../../../parts/Header'; import Container from '../../../parts/Container'; import Button from '../../../parts/Button'; @@ -34,7 +33,7 @@ const ContentWrapper = () => { return ( -
+
- - ); -}; - -export const Content = () => { - const { onClick } = useXProps(); - - const { instructions, about, disclaimer, copyright } = useContent('EZP'); - - return ( -
- - -
- -

How it works

-
    - {instructions.map(([icon, instruction]) => ( -
  • -
    - -
    -

    {instruction}

    -
  • - ))} -
- -
- -

{about.title}

-

{about.text}

- -
- - -
- ); -}; diff --git a/src/components/modal/v1/parts/Header.jsx b/src/components/modal/v1/parts/Header.jsx index 56ea1c296e..c7b890bbc0 100644 --- a/src/components/modal/v1/parts/Header.jsx +++ b/src/components/modal/v1/parts/Header.jsx @@ -6,8 +6,7 @@ import Icon from './Icon'; const LOCALE = { LOGO: { - US: 'logo', - 'US-EZP': 'logo-ezp' + US: 'logo' } }; diff --git a/src/components/modal/v1/parts/Icon.jsx b/src/components/modal/v1/parts/Icon.jsx index c9f871481f..c1ffd67aba 100644 --- a/src/components/modal/v1/parts/Icon.jsx +++ b/src/components/modal/v1/parts/Icon.jsx @@ -9,45 +9,6 @@ const Icon = ({ name, color }) => { return PayPal Logo; case 'logo-text': return PayPal Logo; - case 'logo-ezp': - return ( - - - - - - - - - - - ); case 'close': return (