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

Commit

Permalink
fix: hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
meenakshi-deriv committed Jan 19, 2024
1 parent eebfbbf commit a0d772d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 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.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"
}
4 changes: 4 additions & 0 deletions src/features/pages/home/live-pricing-migration/utils/index.ts
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

0 comments on commit a0d772d

Please sign in to comment.