Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
chore: updated class names in pages components
Browse files Browse the repository at this point in the history
Signed-off-by: hasan-deriv <[email protected]>
  • Loading branch information
hasan-deriv committed Dec 26, 2023
1 parent f576654 commit 0fdef4f
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/features/pages/ctrader-manage/ctrader-manage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const CtraderManage = ({
</Typography.Heading>
{steps && (
<Flex.Box direction="row" gap={'15x'} padding="10x" align="center">
<div className="visible-phone-only">{image_url_mobile}</div>
<div className="visible-larger-than-phone">{image_url}</div>
<div className="at-visible-phone-only">{image_url_mobile}</div>
<div className="at-visible-larger-than-phone">{image_url}</div>
<Flex.Box gap={'5x'} direction="col" justify="center">
{steps.map((step) => (
<Typography.Paragraph key={step.id}>
Expand Down
4 changes: 2 additions & 2 deletions src/features/pages/deriv-ctrader/how-to-start/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ const HowToStartCTrader = () => {
/>
</Typography.Heading>

<div className="visible-phone-and-tablet">
<div className="at-visible-phone-and-tablet">
<TabStepper
is_ctrader
tab={tab}
onTabClick={onTabClick}
items={trading_platform_start[`${tab}_mobile`]}
/>
</div>
<div className="visible-larger-than-tablet">
<div className="at-visible-larger-than-tablet">
<TabStepper
is_ctrader
tab={tab}
Expand Down
2 changes: 1 addition & 1 deletion src/features/pages/options/turbo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const TurboOptions = () => {
}}
className={why_turbo_section}
>
<h3 className={dclsx('text-small')}>
<h3 className={dclsx('at-text-small')}>
<Localize translate_text="_t_Why traders choose turbo options_t_" />
</h3>
<Typography.Paragraph size="small">
Expand Down
2 changes: 1 addition & 1 deletion src/features/pages/options/vanilla/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const VanillaOptions = () => {
}}
className={why_vanilla_section}
>
<h4 className={dclsx('text-small')}>
<h4 className={dclsx('at-text-small')}>
<Localize translate_text="_t_Why traders choose vanilla options_t_" />
</h4>
<Typography.Paragraph size="small">
Expand Down
14 changes: 7 additions & 7 deletions src/features/pages/p2p/availability/platform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ const DP2Platform = ({ item }: { item: PlatformType }) => {
alt="icon"
width={48}
height={48}
className="visible-phone-and-tablet"
className="at-visible-phone-and-tablet"
/>
<Image
src={item.mobile_icon_src}
alt="icon"
width={64}
height={64}
className="visible-larger-than-tablet"
className="at-visible-larger-than-tablet"
/>

<Typography.Heading as="h3" size="xs" mt="8x" mb="16x">
Expand All @@ -51,12 +51,12 @@ const DP2Platform = ({ item }: { item: PlatformType }) => {
mb="12x"
textcolor="black"
md={{ mb: '16x' }}
className={dclsx('text-xlarge')}
className={dclsx('at-text-xlarge')}
key={list_item.text}
>
{list_item?.link_in_mobile ? (
<>
<Typography.Base as="span" className="visible-larger-than-phone">
<Typography.Base as="span" className="at-visible-larger-than-phone">
<Localize
translate_text={list_item.text}
components={list_item.components}
Expand All @@ -66,7 +66,7 @@ const DP2Platform = ({ item }: { item: PlatformType }) => {
as="span"
onClick={handleExternalLink}
textcolor="brand"
className="visible-phone-only"
className="at-visible-phone-only"
>
<Localize translate_text={list_item.text} />
</Typography.Base>
Expand All @@ -87,11 +87,11 @@ const DP2Platform = ({ item }: { item: PlatformType }) => {
<LinkButton.Primary
url={item.button.url}
size="medium"
className="visible-larger-than-phone"
className="at-visible-larger-than-phone"
>
<Localize translate_text={item.button.text} />
</LinkButton.Primary>
<Button.Primary onClick={handleExternalLink} className="visible-phone-only">
<Button.Primary onClick={handleExternalLink} className="at-visible-phone-only">
<Localize translate_text={item.button.text} />
</Button.Primary>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/features/pages/p2p/hero/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const DP2HeroContent = () => {
basis="6-12"
dir={get_lang_direction()}
>
<div className="visible-phone-and-tablet">{banner_content.logo_mobile}</div>
<div className="visible-larger-than-tablet">{banner_content.logo_desktop}</div>
<div className="at-visible-phone-and-tablet">{banner_content.logo_mobile}</div>
<div className="at-visible-larger-than-tablet">{banner_content.logo_desktop}</div>
<Typography.Heading as="h1" size={is_mobile ? 'large' : 'xxxl'}>
<Localize translate_text={banner_content.heading} />
</Typography.Heading>
Expand Down
4 changes: 2 additions & 2 deletions src/features/pages/p2p/steps/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ const DP2StepItem = ({ item }: IStepItemProps) => {
className={step_item}
>
<Flex.Box
className={dclsx(mobile_icon, 'visible-phone-and-tablet')}
className={dclsx(mobile_icon, 'at-visible-phone-and-tablet')}
justify="center"
align="center"
>
<Image src={item.mobile_icon_src} alt="Icon" />
</Flex.Box>
<Flex.Box
className={dclsx(desktop_icon, 'visible-larger-than-tablet')}
className={dclsx(desktop_icon, 'at-visible-larger-than-tablet')}
justify="center"
align="center"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const data: Data[] = [
monthly_requirement: (
<Localize
translate_text="_t_0 - 15 million <0>(Crypto)</0>_t_"
components={[<span key={0} className={dclsx('typography-color-light')} />]}
components={[<span key={0} className={dclsx('at-typography-color-light')} />]}
/>
),
fee_per_million: <Localize translate_text="_t_5.5 bps / 0.055%_t_" />,
Expand All @@ -38,7 +38,7 @@ export const data: Data[] = [
monthly_requirement: (
<Localize
translate_text="_t_> 15 million <0>(Crypto)</0>_t_"
components={[<span key={0} className={dclsx('typography-color-light')} />]}
components={[<span key={0} className={dclsx('at-typography-color-light')} />]}
/>
),
fee_per_million: <Localize translate_text="_t_5 bps / 0.05%_t_" />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ConnectivityReliabilityItem = ({ item }: ConnectivityReliabilityItemProps)
return (
<Flex.Box direction="col" align="center" gap="4x">
<Image src={item.icon_src} width={48} height={48} alt={localize(item.alt)} />
<Typography.Heading className={dclsx('text-medium')} as="h3" textcolor="inverted">
<Typography.Heading className={dclsx('at-text-medium')} as="h3" textcolor="inverted">
<Localize translate_text={item.title} />
</Typography.Heading>
<Flex.Item className={item_box}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ const ContactFormGetInTouch = () => {
</Flex.Box>
<Flex.Item>
<Typography.Paragraph
className={'visible-phone-only'}
className={'at-visible-phone-only'}
size={'xs'}
textcolor={get_form_bottom_message?.color}
>
<Localize translate_text={get_form_bottom_message?.text} />
</Typography.Paragraph>

<Typography.Paragraph
className={'visible-larger-than-phone'}
className={'at-visible-larger-than-phone'}
size={'small'}
textcolor={get_form_bottom_message?.color}
>
Expand Down
4 changes: 2 additions & 2 deletions src/features/pages/partners/deriv-prime/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Hero = () => {
formats={['avif', 'webp', 'auto']}
style={{ height: '100%' }}
objectPosition="center"
className={dclsx('visible-larger-than-tablet')}
className={dclsx('at-visible-larger-than-tablet')}
/>
<StaticImage
src="../../../../../images/common/deriv-prime/hero-mobile.png"
Expand All @@ -42,7 +42,7 @@ const Hero = () => {
placeholder="blurred"
formats={['avif', 'webp', 'auto']}
style={{ height: '100%' }}
className={dclsx('visible-phone-and-tablet')}
className={dclsx('at-visible-phone-and-tablet')}
/>
</div>
<Flex.Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Divider } from 'components/elements'
const MeetUsThere = () => {
return (
<>
<Divider className="visible-larger-than-tablet" />
<Divider className="at-visible-larger-than-tablet" />
<FlexBox.Box
container={'fluid'}
direction={'col'}
Expand Down

0 comments on commit 0fdef4f

Please sign in to comment.