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

Commit

Permalink
Mitra/DPROD-3109/Arabic slider scroll issue (#6963)
Browse files Browse the repository at this point in the history
* fix: 🐛 fix arabic scroll issue in slider

* fix: 🐛 fix change of the icon name coming from quill icons

* fix: 🐛 fix rtl issue
  • Loading branch information
mitra-deriv authored Feb 2, 2024
1 parent 0e6c2fa commit e67e0a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { percentToDecimal, swiperOption } from '../utils'
import { handleRedirectToTradersHub } from 'components/custom/utils'
import useAuthCheck from 'components/hooks/use-auth-check'
import useHandleSignup from 'components/hooks/use-handle-signup'
import { Localize } from 'components/localization'
import { Localize, is_rtl } from 'components/localization'

const IconsMapper = {
// Forex Icons
Expand Down Expand Up @@ -127,6 +127,7 @@ const LiveMarketCard = <T extends MarketName>({
slideClasses="max-w-[296px] !mr-gap-none !ml-gap-none"
className="w-screen lg:w-full [&>*:nth-child(1)]:!gap-gap-lg"
cards={livePriceData.slice(0, 4)}
dir={is_rtl() ? 'rtl' : 'ltr'}
/>
<div className="flex items-center flex-col ">{children}</div>
</>
Expand Down
3 changes: 2 additions & 1 deletion src/features/pages/home/years/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Features } from '@deriv-com/blocks'
import { swiperOption } from '../live-pricing-migration/utils'
import { cards } from './data'
import { Localize } from 'components/localization'
import { Localize, is_rtl } from 'components/localization'

const TwentyYearsStrong = () => {
return (
Expand All @@ -14,6 +14,7 @@ const TwentyYearsStrong = () => {
className: 'w-screen lg:w-full [&>*:nth-child(1)]:!gap-gap-lg ',
variant: 'ContentBottom',
cards: cards,
dir: is_rtl() ? 'rtl' : 'ltr',
}}
/>
)
Expand Down

0 comments on commit e67e0a2

Please sign in to comment.