|
|
|
|
@ -7,7 +7,6 @@ import { ProfileTypes } from 'config' |
|
|
|
|
import type { Match } from 'features/Matches' |
|
|
|
|
import { SportName } from 'features/Common' |
|
|
|
|
import { useMatchSwitchesStore } from 'features/MatchSwitches' |
|
|
|
|
import { useBuyMatchPopupStore } from 'features/BuyMatchPopup' |
|
|
|
|
import { useName } from 'features/Name' |
|
|
|
|
|
|
|
|
|
import { NoAccessMessage } from '../NoAccessMessage' |
|
|
|
|
@ -25,7 +24,7 @@ import { |
|
|
|
|
TournamentName, |
|
|
|
|
TeamLogos, |
|
|
|
|
TeamLogo, |
|
|
|
|
BuyMatchButton, |
|
|
|
|
BuyMatchBadge, |
|
|
|
|
} from '../styled' |
|
|
|
|
import { MatchStatuses, useHeaderFiltersStore } from '../../HeaderFilters' |
|
|
|
|
|
|
|
|
|
@ -58,7 +57,6 @@ export const CardFrontside = ({ |
|
|
|
|
tournament, |
|
|
|
|
} = match |
|
|
|
|
const tournamentName = useName(tournament) |
|
|
|
|
const { open } = useBuyMatchPopupStore() |
|
|
|
|
const { isScoreHidden } = useMatchSwitchesStore() |
|
|
|
|
const { selectedMatchStatus } = useHeaderFiltersStore() |
|
|
|
|
const isInFuture = getUnixTime(date) > getUnixTime(new Date()) |
|
|
|
|
@ -103,11 +101,7 @@ export const CardFrontside = ({ |
|
|
|
|
</TeamLogos> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
{!accessibleBySubscription && ( |
|
|
|
|
<BuyMatchButton |
|
|
|
|
onClick={(e) => open(e, match)} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{!accessibleBySubscription && <BuyMatchBadge />} |
|
|
|
|
{(accessibleBySubscription && !accessibleInUsersCountry) && <NoAccessMessage />} |
|
|
|
|
<MatchDate> |
|
|
|
|
{formattedDate} |
|
|
|
|
|