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

Meenu/Pr 1911 meenu hotfix live price card #6813

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.47.0",
"@deriv-com/components": "^0.48.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": "30,000"
"numberOfReviews": "43,385"
}
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-800"
className="w-screen !mr-[calc((-100vw+100%)/2)] lg:w-full lg:!mr-auto"
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)}
/>
<div className="flex items-center flex-col">{children}</div>
<div className="flex items-center flex-col ">{children}</div>
</>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ 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: 4 additions & 2 deletions src/features/pages/home/years/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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 @@ -8,8 +9,9 @@ const TwentyYearsStrong = () => {
<Features.ContentSlider
title={<Localize translate_text="_t_We're 24+ years strong_t_" />}
cardSliderProps={{
slideClasses: 'max-w-[296px] !h-auto mr-800',
className: 'w-screen !mr-[calc((-100vw+100%)/2)] lg:w-full lg:!mr-auto',
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 ',
variant: 'ContentBottom',
cards: cards,
}}
Expand Down
Loading