|
|
|
@ -24,6 +24,7 @@ type Props = { |
|
|
|
onLoad: (id: number) => void, |
|
|
|
onLoad: (id: number) => void, |
|
|
|
players: PlayerPlaylistOptions, |
|
|
|
players: PlayerPlaylistOptions, |
|
|
|
team: Teams, |
|
|
|
team: Teams, |
|
|
|
|
|
|
|
teamColor: string, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const PlayersList = ({ |
|
|
|
export const PlayersList = ({ |
|
|
|
@ -31,6 +32,7 @@ export const PlayersList = ({ |
|
|
|
onLoad, |
|
|
|
onLoad, |
|
|
|
players, |
|
|
|
players, |
|
|
|
team, |
|
|
|
team, |
|
|
|
|
|
|
|
teamColor, |
|
|
|
}: Props) => { |
|
|
|
}: Props) => { |
|
|
|
const { handlePlayerClick, match } = useMatchPopupStore() |
|
|
|
const { handlePlayerClick, match } = useMatchPopupStore() |
|
|
|
|
|
|
|
|
|
|
|
@ -47,7 +49,7 @@ export const PlayersList = ({ |
|
|
|
id={player.id} |
|
|
|
id={player.id} |
|
|
|
sportType={match.sportType} |
|
|
|
sportType={match.sportType} |
|
|
|
profileType={ProfileTypes.PLAYERS} |
|
|
|
profileType={ProfileTypes.PLAYERS} |
|
|
|
team={team} |
|
|
|
teamColor={teamColor} |
|
|
|
onLoad={() => onLoad(player.id)} |
|
|
|
onLoad={() => onLoad(player.id)} |
|
|
|
/> |
|
|
|
/> |
|
|
|
{player.gk && ( |
|
|
|
{player.gk && ( |
|
|
|
|