Skip to content

Commit

Permalink
remove ezp components
Browse files Browse the repository at this point in the history
  • Loading branch information
surekhaw committed Nov 20, 2024
1 parent ed63fc9 commit 11d2636
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 167 deletions.
28 changes: 0 additions & 28 deletions src/components/modal/v1/content/US-EZP/parts/Content.jsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -34,7 +33,7 @@ const ContentWrapper = () => {

return (
<Container contentWrapper={contentWrapper} contentMaxWidth={612}>
<Header className={showApplyNow ? 'logo-wrapper--shift' : ''} logo="US-EZP">
<Header className={showApplyNow ? 'logo-wrapper--shift' : ''}>
<Button
className={`apply-now ${showApplyNow ? 'show' : ''}`}
onClick={showApplyNow ? handleApplyNowClick : null}
Expand All @@ -45,9 +44,7 @@ const ContentWrapper = () => {
<div className="content-wrapper" ref={contentWrapper}>
<div className="content-background">
<div className="content">
<main className="main">
<Content />
</main>
<main className="main" />
</div>
</div>
</div>
Expand Down
93 changes: 0 additions & 93 deletions src/components/modal/v1/content/US-EZP/parts/EZP.jsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/components/modal/v1/parts/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import Icon from './Icon';

const LOCALE = {
LOGO: {
US: 'logo',
'US-EZP': 'logo-ezp'
US: 'logo'
}
};

Expand Down
39 changes: 0 additions & 39 deletions src/components/modal/v1/parts/Icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,6 @@ const Icon = ({ name, color }) => {
return <img alt="PayPal Logo" src={logos.PRIMARY.WHITE[0].src} />;
case 'logo-text':
return <img alt="PayPal Logo" src={logos.ALT_NO_PP.COLOR.src} />;
case 'logo-ezp':
return (
<svg alt="PayPal Logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 204.12 68.53">
<path
fill={color || '#009cde'}
fill-opacity={color ? '0.7' : '1'}
d="M52.34 17.41c.84-5.33 0-9-2.89-12.24C46.27 1.55 40.54 0 33.2 0H11.9a3 3 0 00-3 2.57L0 58.81a1.83 1.83 0 001.81 2.11H15l-.91 5.76a1.6 1.6 0 001.58 1.85h11.06a2.67 2.67 0 002.63-2.25l.11-.56 2.09-13.24.13-.73a2.67 2.67 0 012.63-2.25H36c10.74 0 19.15-4.36 21.6-17 1-5.27.5-9.67-2.22-12.77a10.56 10.56 0 00-3-2.34"
/>
<path
fill={color || '#012169'}
fill-opacity={color ? '0.7' : '1'}
d="M52.34 17.41c.84-5.33 0-9-2.89-12.24C46.27 1.55 40.54 0 33.2 0H11.9a3 3 0 00-3 2.57L0 58.81a1.83 1.83 0 001.81 2.11H15L18.28 40l-.1.66a3 3 0 013-2.57h6.25c12.27 0 21.88-5 24.69-19.41.08-.43.15-.84.22-1.25"
/>
<path
fill={color || '#003087'}
d="M21.83 17.48a2.66 2.66 0 012.63-2.25h16.7a34.81 34.81 0 015.51.4q.72.12 1.41.27t1.33.34l.63.2a15.06 15.06 0 012.31 1c.84-5.33 0-9-2.89-12.24C46.27 1.55 40.54 0 33.2 0H11.9a3 3 0 00-3 2.57L0 58.81a1.83 1.83 0 001.81 2.11H15L18.28 40zm121.96 17.74a1.11 1.11 0 011.1-.94h10.27c8.48 0 14.41 6.66 13.08 15.22a18.65 18.65 0 01-17.88 15.22h-10.47a.65.65 0 01-.64-.75zM148.1 58h1.78c4.72 0 9.12-2.56 10.12-8.5.85-5.45-2.26-8.52-7.35-8.52h-1.3a.65.65 0 00-.64.55zm-17.61-16.08l-.66 4.15H138a.65.65 0 01.64.75l-.79 5a1.11 1.11 0 01-1.1.94h-7a1.11 1.11 0 00-1.1.93l-.7 4.32h8.65a.65.65 0 01.64.75l-.79 5a1.11 1.11 0 01-1.1.94h-15.63a.65.65 0 01-.64-.75l4.54-28.76a1.11 1.11 0 011.1-.94h15.61a.65.65 0 01.67.75l-.79 5a1.11 1.11 0 01-1.1.94h-7.51a1.11 1.11 0 00-1.11.98zm44.66 22.81h-6.21a.65.65 0 01-.64-.75l4.54-28.76a1.11 1.11 0 011.1-.94h6.21a.65.65 0 01.64.75l-4.54 28.76a1.11 1.11 0 01-1.1.94zm-58.23 0h-8.13a.9.9 0 01-.81-.51L102.61 53h-.08l-1.74 11a.9.9 0 01-.89.76h-6.38a.65.65 0 01-.64-.75L97.45 35a.9.9 0 01.89-.76h11.06c6 0 10.13 2.87 9.12 9.37a10 10 0 01-8 8.6l7 11.49a.65.65 0 01-.6 1.03zm-13.58-16.8h.77c2.58 0 5.56-.49 6.1-3.8s-1.18-3.79-3.94-3.8h-1.12a.69.69 0 00-.68.58zm88.59 16.8h-6.21a.65.65 0 01-.64-.75l3.64-23h-5.78a.65.65 0 01-.64-.75l.79-5a1.11 1.11 0 011.1-.94h19.29a.65.65 0 01.64.75l-.79 5a1.11 1.11 0 01-1.1.94h-5.59L193 63.79a1.11 1.11 0 01-1.07.94zm-98.65-21.8a.69.69 0 01-1.18.36 7.6 7.6 0 00-5.49-2.12 9.73 9.73 0 00-9.44 8.43c-.73 4.8 2 8.27 6.94 8.27a10.48 10.48 0 006-2.06.69.69 0 011.07.67l-1.13 7a1.09 1.09 0 01-.77.87 22.07 22.07 0 01-6.52 1.22c-13.12 0-15.22-11.21-14.54-16C70.09 36.2 80.94 33.14 87.58 33.5a19.55 19.55 0 015.94 1.11 1.36 1.36 0 01.87 1.49z"
/>
<path
fill={color || '#009cde'}
d="M132.7 3.81h-6.85a1 1 0 00-.94.8l-2.77 17.58a.57.57 0 00.56.66h3.52a.67.67 0 00.66-.56l.79-5a1 1 0 01.94-.8h2.17c4.52 0 7.12-2.18 7.8-6.52a5.28 5.28 0 00-.87-4.42c-.99-1.14-2.71-1.74-5.01-1.74zm.79 6.42c-.37 2.46-2.25 2.46-4.07 2.46h-1l.73-4.59a.57.57 0 01.56-.48h.47c1.24 0 2.41 0 3 .7a2.29 2.29 0 01.31 1.91z"
/>
<path
fill={color || '#003087'}
d="M83.81 3.81H77a1 1 0 00-.94.8l-2.82 17.58a.57.57 0 00.56.66h3.27A1 1 0 0078 22l.75-4.74a1 1 0 01.94-.8h2.17c4.52 0 7.12-2.18 7.8-6.52a5.28 5.28 0 00-.87-4.42c-.96-1.11-2.69-1.71-4.98-1.71zm.79 6.42c-.37 2.46-2.25 2.46-4.07 2.46h-1l.73-4.59a.57.57 0 01.56-.48h.47c1.24 0 2.41 0 3 .7a2.29 2.29 0 01.31 1.91zm19.7-.08H101a.57.57 0 00-.56.48l-.14.92-.23-.33c-.71-1-2.3-1.38-3.88-1.38a7.55 7.55 0 00-7.33 6.6 6.2 6.2 0 001.22 5 5.14 5.14 0 004.13 1.67 6.28 6.28 0 004.54-1.88l-.15.91a.57.57 0 00.56.66h3a1 1 0 00.94-.8l1.77-11.24a.57.57 0 00-.57-.61zm-4.57 6.39A3.66 3.66 0 0196 19.67a2.77 2.77 0 01-2.2-.89 2.79 2.79 0 01-.51-2.31A3.67 3.67 0 0197 13.32a2.77 2.77 0 012.19.89 2.83 2.83 0 01.53 2.33z"
/>
<path
fill={color || '#009cde'}
d="M153.19 10.15h-3.28a.57.57 0 00-.56.48l-.14.92-.23-.33c-.71-1-2.3-1.38-3.88-1.38a7.55 7.55 0 00-7.33 6.6 6.2 6.2 0 001.22 5 5.14 5.14 0 004.13 1.67 6.28 6.28 0 004.54-1.88l-.15.91a.57.57 0 00.56.66h3a1 1 0 00.93-.8l1.77-11.24a.57.57 0 00-.58-.61zm-4.57 6.39a3.66 3.66 0 01-3.7 3.13 2.77 2.77 0 01-2.2-.89 2.79 2.79 0 01-.51-2.31 3.67 3.67 0 013.68-3.16 2.77 2.77 0 012.19.89 2.83 2.83 0 01.53 2.34z"
/>
<path
fill={color || '#003087'}
d="M121.78 10.15h-3.3a1 1 0 00-.79.42l-4.55 6.7-1.93-6.44a1 1 0 00-.91-.68h-3.24a.57.57 0 00-.54.76l3.63 10.66-3.42 4.82a.57.57 0 00.47.9h3.3a1 1 0 00.78-.41l11-15.83a.57.57 0 00-.5-.9z"
/>
<path
fill={color || '#009cde'}
d="M157.06 4.29l-2.81 17.9a.57.57 0 00.56.66h2.83a1 1 0 00.94-.8l2.77-17.58a.57.57 0 00-.56-.66h-3.17a.57.57 0 00-.56.48z"
/>
</svg>
);
case 'close':
return (
<svg
Expand Down

0 comments on commit 11d2636

Please sign in to comment.