|
|
|
|
@ -2,6 +2,7 @@ import map from 'lodash/map' |
|
|
|
|
|
|
|
|
|
import { ProfileTypes } from 'config' |
|
|
|
|
|
|
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
|
import { PlayerPlaylistOptions } from 'features/MatchPage/types' |
|
|
|
|
import { useMatchPopupStore } from 'features/MatchPopup/store' |
|
|
|
|
|
|
|
|
|
@ -12,6 +13,8 @@ import { |
|
|
|
|
Logo, |
|
|
|
|
PlayerName, |
|
|
|
|
Button, |
|
|
|
|
PlayerPhoto, |
|
|
|
|
PlayerGk, |
|
|
|
|
} from './styled' |
|
|
|
|
|
|
|
|
|
type Props = { |
|
|
|
|
@ -37,13 +40,20 @@ export const PlayersList = ({ |
|
|
|
|
map(players, (player) => ( |
|
|
|
|
<Item key={player.id} isReady={allLoaded}> |
|
|
|
|
<Button onClick={() => handlePlayerClick(player)}> |
|
|
|
|
<Logo |
|
|
|
|
id={player.id} |
|
|
|
|
sportType={match.sportType} |
|
|
|
|
profileType={ProfileTypes.PLAYERS} |
|
|
|
|
team={team} |
|
|
|
|
onLoad={() => onLoad(player.id)} |
|
|
|
|
/> |
|
|
|
|
<PlayerPhoto> |
|
|
|
|
<Logo |
|
|
|
|
id={player.id} |
|
|
|
|
sportType={match.sportType} |
|
|
|
|
profileType={ProfileTypes.PLAYERS} |
|
|
|
|
team={team} |
|
|
|
|
onLoad={() => onLoad(player.id)} |
|
|
|
|
/> |
|
|
|
|
{player.gk && ( |
|
|
|
|
<PlayerGk> |
|
|
|
|
<T9n t='gk' /> |
|
|
|
|
</PlayerGk> |
|
|
|
|
)} |
|
|
|
|
</PlayerPhoto> |
|
|
|
|
<PlayerName nameObj={player} /> |
|
|
|
|
</Button> |
|
|
|
|
</Item> |
|
|
|
|
|