Skip to content

Commit

Permalink
(PC-33308) fix(home): use releaseDate on home playlists (#7318)
Browse files Browse the repository at this point in the history
* (PC-33308) fix(home): use releaseDate on home playlists

* update snapshot
  • Loading branch information
imouandjolobe-pass authored Dec 2, 2024
1 parent f06e85b commit cc72412
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/noUncheckedIndexedAccess_snapshot.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
./src/features/deeplinks/helpers/getScreenFromDeeplink.ts:24
./src/features/home/api/helpers/mapVenuesDataAndModules.ts:13
./src/features/home/api/helpers/mapVenuesDataAndModules.ts:15
./src/features/home/components/modules/OffersModule.tsx:70
./src/features/home/components/modules/OffersModule.tsx:69
./src/features/home/components/modules/video/OldVideoModuleDesktop.tsx:96
./src/features/home/components/modules/video/OldVideoModuleMobile.tsx:70
./src/features/home/components/modules/video/VideoModuleDesktop.tsx:86
Expand Down
3 changes: 0 additions & 3 deletions src/features/home/components/modules/OffersModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { useFeatureFlag } from 'libs/firebase/firestore/featureFlags/useFeatureF
import { RemoteStoreFeatureFlags } from 'libs/firebase/firestore/types'
import useFunctionOnce from 'libs/hooks/useFunctionOnce'
import { useLocation } from 'libs/location'
import { formatDates } from 'libs/parsers/formatDates'
import { Offer } from 'shared/offer/types'
import { PassPlaylist } from 'ui/components/PassPlaylist'
import { CustomListRenderItem, ItemDimensions, RenderFooterItem } from 'ui/components/Playlist'
Expand Down Expand Up @@ -100,11 +99,9 @@ export const OffersModule = (props: OffersModuleProps) => {

const renderItem: CustomListRenderItem<Offer> = useCallback(
({ item, width, height }) => {
const timestampsInMillis = item.offer.dates?.map((timestampInSec) => timestampInSec * 1000)
return (
<OfferTileWrapper
item={item}
date={formatDates(timestampsInMillis)}
moduleName={moduleName}
moduleId={moduleId}
homeEntryId={homeEntryId}
Expand Down

0 comments on commit cc72412

Please sign in to comment.