|
|
|
|
@ -6,7 +6,6 @@ import type { UserFavorites } from 'requests/getUserSportFavs' |
|
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
|
import { SportIcon } from 'components/SportIcon/SportIcon' |
|
|
|
|
import { useLexicsStore } from 'features/LexicsStore' |
|
|
|
|
import { ProfileLink } from 'features/ProfileLink' |
|
|
|
|
import { UserSportFavImgWrapper } from 'features/UserFavorites/styled' |
|
|
|
|
import { Flag } from 'features/ItemsList/styled' |
|
|
|
|
|
|
|
|
|
@ -21,6 +20,7 @@ import { |
|
|
|
|
SportItemLogoWrapper, |
|
|
|
|
Arrows, |
|
|
|
|
TitleWrapper, |
|
|
|
|
FavLink, |
|
|
|
|
Name, |
|
|
|
|
} from './styled' |
|
|
|
|
|
|
|
|
|
@ -51,31 +51,30 @@ export const GroupBlock = ({ groupBlock }: Props) => { |
|
|
|
|
const { countryOrTeam, name } = favoriteItemNames |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<Item key={item.id}> |
|
|
|
|
<SportItemLogoWrapper> |
|
|
|
|
<ProfileLink |
|
|
|
|
id={item.id} |
|
|
|
|
sportType={item.sport} |
|
|
|
|
profileType={item.type} |
|
|
|
|
> |
|
|
|
|
<FavLink |
|
|
|
|
id={item.id} |
|
|
|
|
sportType={item.sport} |
|
|
|
|
profileType={item.type} |
|
|
|
|
> |
|
|
|
|
<Item key={item.id}> |
|
|
|
|
<SportItemLogoWrapper> |
|
|
|
|
<UserSportFavImgWrapper |
|
|
|
|
id={item.id} |
|
|
|
|
altNameObj={item} |
|
|
|
|
sportType={item.sport} |
|
|
|
|
profileType={item.type} |
|
|
|
|
/> |
|
|
|
|
</ProfileLink> |
|
|
|
|
</SportItemLogoWrapper> |
|
|
|
|
|
|
|
|
|
<EmptyDiv> |
|
|
|
|
<Name>{name}</Name> |
|
|
|
|
<CountryAndTeamInfo> |
|
|
|
|
<SportIcon sport={item.sport} size={10} /> |
|
|
|
|
<Flag src={`https://instatscout.com/images/flags/48/${item.info.country?.id}.png`} /> |
|
|
|
|
<EmptySpan>{countryOrTeam}</EmptySpan> |
|
|
|
|
</CountryAndTeamInfo> |
|
|
|
|
</EmptyDiv> |
|
|
|
|
</Item> |
|
|
|
|
</SportItemLogoWrapper> |
|
|
|
|
<EmptyDiv> |
|
|
|
|
<Name>{name}</Name> |
|
|
|
|
<CountryAndTeamInfo> |
|
|
|
|
<SportIcon sport={item.sport} size={10} /> |
|
|
|
|
<Flag src={`https://instatscout.com/images/flags/48/${item.info.country?.id}.png`} /> |
|
|
|
|
<EmptySpan>{countryOrTeam}</EmptySpan> |
|
|
|
|
</CountryAndTeamInfo> |
|
|
|
|
</EmptyDiv> |
|
|
|
|
</Item> |
|
|
|
|
</FavLink> |
|
|
|
|
) |
|
|
|
|
})} |
|
|
|
|
</ContentWrapper> |
|
|
|
|
|