|
|
|
@ -2,6 +2,8 @@ import map from 'lodash/map' |
|
|
|
|
|
|
|
|
|
|
|
import type { Events, MatchInfo } from 'requests' |
|
|
|
import type { Events, MatchInfo } from 'requests' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { isLffClient } from 'config/clients' |
|
|
|
|
|
|
|
|
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
import type { |
|
|
|
import type { |
|
|
|
EventPlaylistOption, |
|
|
|
EventPlaylistOption, |
|
|
|
@ -60,6 +62,7 @@ export const EventsList = ({ |
|
|
|
const team = isHomeTeam |
|
|
|
const team = isHomeTeam |
|
|
|
? profile?.team1 |
|
|
|
? profile?.team1 |
|
|
|
: profile?.team2 |
|
|
|
: profile?.team2 |
|
|
|
|
|
|
|
const eventWithoutClick = isLffClient && profile?.live |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Event key={event.n}> |
|
|
|
<Event key={event.n}> |
|
|
|
@ -67,7 +70,7 @@ export const EventsList = ({ |
|
|
|
active={isEqual(eventPlaylist, selectedPlaylist)} |
|
|
|
active={isEqual(eventPlaylist, selectedPlaylist)} |
|
|
|
event={event} |
|
|
|
event={event} |
|
|
|
isHomeTeam={isHomeTeam} |
|
|
|
isHomeTeam={isHomeTeam} |
|
|
|
onClick={() => !profile?.live && onSelect(eventPlaylist)} |
|
|
|
onClick={() => !eventWithoutClick && onSelect(eventPlaylist)} |
|
|
|
team={team} |
|
|
|
team={team} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Event> |
|
|
|
</Event> |
|
|
|
|