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

Commit

Permalink
Revert "Meenu/Pr 1911 meenu hotfix live price card" (#6834)
Browse files Browse the repository at this point in the history
  • Loading branch information
habib-deriv authored Jan 22, 2024
1 parent 9f5c0c5 commit 84dfa8b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@artsy/fresnel": "^6.2.1",
"@builder.io/partytown": "^0.8.1",
"@deriv-com/blocks": "^0.79.0",
"@deriv-com/components": "^0.48.0",
"@deriv-com/components": "^0.47.0",
"@deriv-com/hooks": "^0.10.0",
"@deriv-com/providers": "^0.11.0",
"@deriv/analytics": "^1.4.4",
Expand Down
2 changes: 1 addition & 1 deletion src/data/trustpilot.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"stars": 4.5,
"trustScore": 4.6,
"numberOfReviews": "43,385"
"numberOfReviews": "30,000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ const LiveMarketCard = <T extends MarketName>({
<CardSlider
variant="LiveMarketCard"
swiperData={swiperOption}
slideClasses="max-w-[296px] !mr-gap-none !ml-gap-none"
className="w-screen lg:w-full [&>*:nth-child(1)]:!gap-gap-lg"
slideClasses="max-w-[296px] mr-800"
className="w-screen !mr-[calc((-100vw+100%)/2)] lg:w-full lg:!mr-auto"
cards={livePriceData.slice(0, 4)}
/>
<div className="flex items-center flex-col ">{children}</div>
<div className="flex items-center flex-col">{children}</div>
</>
)
}
Expand Down
4 changes: 0 additions & 4 deletions src/features/pages/home/live-pricing-migration/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ export const percentToDecimal = (percentStr) => {
interface SwiperOption {
spaceBetween: number
slidesPerView: number | 'auto'
reverseDirection: true
freeMode: true
}

export const swiperOption: SwiperOption = {
spaceBetween: 16,
slidesPerView: 'auto',
reverseDirection: true,
freeMode: true,
}

export const initialLiveMarketData = {
Expand Down
6 changes: 2 additions & 4 deletions src/features/pages/home/years/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
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'

Expand All @@ -9,9 +8,8 @@ const TwentyYearsStrong = () => {
<Features.ContentSlider
title={<Localize translate_text="_t_We're 24+ years strong_t_" />}
cardSliderProps={{
swiperData: swiperOption,
slideClasses: 'max-w-[296px] !h-auto !mr-gap-none !ml-gap-none',
className: 'w-screen lg:w-full [&>*:nth-child(1)]:!gap-gap-lg ',
slideClasses: 'max-w-[296px] !h-auto mr-800',
className: 'w-screen !mr-[calc((-100vw+100%)/2)] lg:w-full lg:!mr-auto',
variant: 'ContentBottom',
cards: cards,
}}
Expand Down

0 comments on commit 84dfa8b

Please sign in to comment.