diff --git a/libs/blocks/src/lib/cta/index.tsx b/libs/blocks/src/lib/cta/index.tsx index db0f1602..7aa28d6a 100644 --- a/libs/blocks/src/lib/cta/index.tsx +++ b/libs/blocks/src/lib/cta/index.tsx @@ -2,14 +2,6 @@ import React from 'react'; import { Heading, Section, Text } from '@deriv/quill-design'; import clsx from 'clsx'; -type viewPortVariant = 'sm' | 'md' | 'lg'; - -const Breakpoints: { [key in viewPortVariant]: string } = { - sm: 'max-w-[640px]', - md: 'max-w-[768px]', - lg: 'min-w-[834px]', -}; - export type CTABlockProps = { content?: React.ReactNode; children?: React.ReactNode; @@ -17,29 +9,25 @@ export type CTABlockProps = { description?: React.ReactNode | string; className?: string; variant?: 'content-left' | 'content-right'; - size?: viewPortVariant; - breakpoints?: typeof Breakpoints; }; const CTABlock = ({ content, children, title, description, - breakpoints = Breakpoints, - size = 'md', variant = 'content-left', }: CTABlockProps) => { return ( -
+
{title && {title}} @@ -56,15 +46,13 @@ const CTABlock = ({
{children && children}
- - {content && size === 'lg' ? ( -
{content}
- ) : content && size === 'md' ? ( -
- {content} -
- ) : ( -
+ {content && ( +
{content}
)}