|
|
|
@ -12,6 +12,8 @@ import { useName } from 'features/Name' |
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
import { MatchAccess } from 'features/Matches/helpers/getMatchClickAction' |
|
|
|
import { MatchAccess } from 'features/Matches/helpers/getMatchClickAction' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { readToken } from 'helpers/token' |
|
|
|
|
|
|
|
|
|
|
|
import { useUserFavoritesStore } from 'features/UserFavorites/store' |
|
|
|
import { useUserFavoritesStore } from 'features/UserFavorites/store' |
|
|
|
import { NoAccessMessage } from '../NoAccessMessage' |
|
|
|
import { NoAccessMessage } from '../NoAccessMessage' |
|
|
|
import { |
|
|
|
import { |
|
|
|
@ -56,6 +58,7 @@ export const CardFrontside = ({ |
|
|
|
formattedDate, |
|
|
|
formattedDate, |
|
|
|
live, |
|
|
|
live, |
|
|
|
preview, |
|
|
|
preview, |
|
|
|
|
|
|
|
previewURL, |
|
|
|
sportType, |
|
|
|
sportType, |
|
|
|
team1, |
|
|
|
team1, |
|
|
|
team2, |
|
|
|
team2, |
|
|
|
@ -75,6 +78,8 @@ export const CardFrontside = ({ |
|
|
|
const team1InFavorites = isInFavorites(ProfileTypes.TEAMS, team1.id) |
|
|
|
const team1InFavorites = isInFavorites(ProfileTypes.TEAMS, team1.id) |
|
|
|
const team2InFavorites = isInFavorites(ProfileTypes.TEAMS, team2.id) |
|
|
|
const team2InFavorites = isInFavorites(ProfileTypes.TEAMS, team2.id) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const currentPreviewURL = previewURL ? `${previewURL}?access_token=${readToken()}` : preview |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<CardWrapperOuter |
|
|
|
<CardWrapperOuter |
|
|
|
onClick={onClick} |
|
|
|
onClick={onClick} |
|
|
|
@ -84,11 +89,11 @@ export const CardFrontside = ({ |
|
|
|
<HoverFrame /> |
|
|
|
<HoverFrame /> |
|
|
|
<PreviewWrapper> |
|
|
|
<PreviewWrapper> |
|
|
|
{ |
|
|
|
{ |
|
|
|
preview && ( |
|
|
|
(currentPreviewURL) && ( |
|
|
|
<Preview |
|
|
|
<Preview |
|
|
|
alt={tournamentName} |
|
|
|
alt={tournamentName} |
|
|
|
title={tournamentName} |
|
|
|
title={tournamentName} |
|
|
|
src={preview} |
|
|
|
src={currentPreviewURL} |
|
|
|
/> |
|
|
|
/> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|