|
|
|
|
@ -2,21 +2,25 @@ import map from 'lodash/map' |
|
|
|
|
|
|
|
|
|
import type { Events, MatchInfo } from 'requests' |
|
|
|
|
|
|
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
|
import type { |
|
|
|
|
EventPlaylistOption, |
|
|
|
|
PlaylistOption, |
|
|
|
|
Playlists, |
|
|
|
|
} from 'features/MatchPage/types' |
|
|
|
|
import { PlaylistTypes } from 'features/MatchPage/types' |
|
|
|
|
|
|
|
|
|
import { isEqual } from '../../helpers' |
|
|
|
|
import { EventButton } from '../EventButton' |
|
|
|
|
import { Event, List } from '../TabEvents/styled' |
|
|
|
|
import { |
|
|
|
|
BlockTitle, |
|
|
|
|
Event, |
|
|
|
|
TextEvent, |
|
|
|
|
List, |
|
|
|
|
} from '../TabEvents/styled' |
|
|
|
|
|
|
|
|
|
type Props = { |
|
|
|
|
events: Events, |
|
|
|
|
onSelect: (option: PlaylistOption) => void, |
|
|
|
|
playlists: Playlists, |
|
|
|
|
profile: MatchInfo, |
|
|
|
|
selectedPlaylist?: PlaylistOption, |
|
|
|
|
} |
|
|
|
|
@ -24,12 +28,21 @@ type Props = { |
|
|
|
|
export const EventsList = ({ |
|
|
|
|
events, |
|
|
|
|
onSelect, |
|
|
|
|
playlists, |
|
|
|
|
profile, |
|
|
|
|
selectedPlaylist, |
|
|
|
|
}: Props) => ( |
|
|
|
|
<List> |
|
|
|
|
{map(events, (event) => { |
|
|
|
|
if (!event.t && !event.pl) { |
|
|
|
|
return ( |
|
|
|
|
<TextEvent key={event.n}> |
|
|
|
|
<BlockTitle> |
|
|
|
|
<T9n t={event.l} /> |
|
|
|
|
</BlockTitle> |
|
|
|
|
</TextEvent> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const repeatedEpisodes = event.rep || [] |
|
|
|
|
const eventPlaylist = { |
|
|
|
|
data: [{ |
|
|
|
|
|