From 0cbbf767a030f987d23b45bfcc5f4ada197aaf45 Mon Sep 17 00:00:00 2001 From: hasan-deriv Date: Mon, 25 Dec 2023 15:13:39 +0800 Subject: [PATCH] chore: updated class names in templates components --- .../banners/deriv-products-hero/products-heading.tsx | 4 ++-- .../templates/navigation/template/desktop-menu/index.tsx | 4 ++-- .../options-content/section-content-option.item.tsx | 4 ++-- .../options-content/single-content-option.item.tsx | 2 +- .../templates/trade-platform/other-platforms/index.tsx | 8 ++++---- .../other-platforms/platform-card/index.tsx | 9 +++++++-- .../components/templates/why-trade-options/index.tsx | 2 +- 7 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx b/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx index fd39e81a23a..b972f949d0a 100644 --- a/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx +++ b/src/features/components/templates/banners/deriv-products-hero/products-heading.tsx @@ -17,7 +17,7 @@ const ProductsHeading = ({ title }: ProductsHeadingProps) => { align={'left'} pt={'4x'} md={{ pt: '8x' }} - className="visible-larger-than-tablet" + className="at-visible-larger-than-tablet" > {title.map((text, index) => ( @@ -32,7 +32,7 @@ const ProductsHeading = ({ title }: ProductsHeadingProps) => { align={'left'} pt={'4x'} md={{ pt: '8x' }} - className="visible-phone-and-tablet" + className="at-visible-phone-and-tablet" > {title.map((text, index) => ( diff --git a/src/features/components/templates/navigation/template/desktop-menu/index.tsx b/src/features/components/templates/navigation/template/desktop-menu/index.tsx index 2df5aef28d1..7587b71e8b2 100644 --- a/src/features/components/templates/navigation/template/desktop-menu/index.tsx +++ b/src/features/components/templates/navigation/template/desktop-menu/index.tsx @@ -22,8 +22,8 @@ const DesktopMenu = ({ has_centered_items }: IDesktopNavbarProps) => { onValueChange={setActive} className={dclsx( 'navigation_root', - has_centered_items ? 'justify-center' : 'justify-end', - has_centered_items ? undefined : 'margin-right-40x', + has_centered_items ? 'at-justify-center' : 'at-justify-end', + has_centered_items ? undefined : 'at-margin-right-40x', )} > diff --git a/src/features/components/templates/options-content/section-content-option.item.tsx b/src/features/components/templates/options-content/section-content-option.item.tsx index 92c3b83c970..35b496dbad8 100644 --- a/src/features/components/templates/options-content/section-content-option.item.tsx +++ b/src/features/components/templates/options-content/section-content-option.item.tsx @@ -12,14 +12,14 @@ const SectionOptionContentItem = ({ item }: { item: OptionContentSectionItemData {item.icon.src && {localize(item.icon.alt)}} {item.title && ( -

+

)}
{item.sections.map((sectionItem) => ( -
+
diff --git a/src/features/components/templates/options-content/single-content-option.item.tsx b/src/features/components/templates/options-content/single-content-option.item.tsx index 9f7ded0c691..38a06a2637c 100644 --- a/src/features/components/templates/options-content/single-content-option.item.tsx +++ b/src/features/components/templates/options-content/single-content-option.item.tsx @@ -12,7 +12,7 @@ const SingleOptionContentItem = ({ item }: { item: OptionContentSingleItemData } {item.icon && {localize(item.icon.alt)}} {item.title && ( -

+

)} diff --git a/src/features/components/templates/trade-platform/other-platforms/index.tsx b/src/features/components/templates/trade-platform/other-platforms/index.tsx index 5a3f0ba2e96..d64511e1421 100644 --- a/src/features/components/templates/trade-platform/other-platforms/index.tsx +++ b/src/features/components/templates/trade-platform/other-platforms/index.tsx @@ -32,7 +32,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => { -
+
{ }, }} className={dclsx( - 'padding-inline-5x padding-bottom-20x md-padding-bottom-10x', + 'at-padding-inline-5x at-padding-bottom-20x md-at-padding-bottom-10x', )} > {data.map((slide) => ( @@ -69,7 +69,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => {