fix(2288): fix name to short_name for teams popup

keep-around/9f218b345a19ac3a707da9f0e317dae3574e2e1a
Andrei Dekterev 4 years ago
parent 9c71b58e1d
commit 9f218b345a
  1. 9
      src/features/PreferencesPopup/components/TournamentInfo/index.tsx
  2. 2
      src/features/TournamentsPopup/index.tsx

@ -38,12 +38,17 @@ const StyledName = styled(Name)`
type Props = {
isIcon?: boolean,
prefix?: string,
tournament: Tournament,
}
export const TournamentInfo = ({ isIcon, tournament }: Props) => (
export const TournamentInfo = ({
isIcon,
prefix,
tournament,
}: Props) => (
<Wrapper>
<StyledName nameObj={tournament} className='title' />
<StyledName nameObj={tournament} className='title' prefix={prefix} />
<ItemInfo>
{isIcon && <SportIcon sport={tournament.sport} />}
<Flag src={`https://instatscout.com/images/flags/48/${tournament.country.id}.png`} />

@ -67,7 +67,7 @@ export const TournamentsPopup = () => {
onClick={close}
key={team.id}
>
<ScItem isIcon={false} tournament={team} />
<ScItem isIcon={false} tournament={team} prefix='short_name_' />
</StyledLink>
))}
</ScList>

Loading…
Cancel
Save