From bde02bb378aa9152746f7446e9180f754bda7f76 Mon Sep 17 00:00:00 2001 From: boyvanov <50294488+boyvanov@users.noreply.github.com> Date: Fri, 24 Sep 2021 13:49:42 +0300 Subject: [PATCH] feat(ott-1410): add duration to players playlists (#501) Co-authored-by: boyvanov --- src/features/MatchPage/types.tsx | 1 + .../MatchSidePlaylists/components/PlayersPlaylists/index.tsx | 3 ++- src/requests/getMatchPlaylists.tsx | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/features/MatchPage/types.tsx b/src/features/MatchPage/types.tsx index 7bc07bd6..357ad3b3 100644 --- a/src/features/MatchPage/types.tsx +++ b/src/features/MatchPage/types.tsx @@ -18,6 +18,7 @@ export type MatchPlaylistOption = { } export type PlayerPlaylistOption = { + dur: number, gk?: boolean, id: number, name_eng: string, diff --git a/src/features/MatchSidePlaylists/components/PlayersPlaylists/index.tsx b/src/features/MatchSidePlaylists/components/PlayersPlaylists/index.tsx index acbf8a74..dd218304 100644 --- a/src/features/MatchSidePlaylists/components/PlayersPlaylists/index.tsx +++ b/src/features/MatchSidePlaylists/components/PlayersPlaylists/index.tsx @@ -80,8 +80,9 @@ export const PlayersPlaylists = ({ map(players[selectedTeam], (player) => ( onSelect(player)} active={isEqual(player, selectedMathPlaylist)} + duration={player.dur} + onClick={() => onSelect(player)} leftContent={(