|
|
|
|
@ -38,18 +38,12 @@ export const getProfileLogo = ({ |
|
|
|
|
size = 180, |
|
|
|
|
sportType, |
|
|
|
|
}: GetLogoArgs) => { |
|
|
|
|
let content = '' |
|
|
|
|
|
|
|
|
|
switch (true) { |
|
|
|
|
case isTournamentSuper: |
|
|
|
|
content = `https://cf-aws-staging.insports.tv/media/tournaments/${sportType}/${id}/${MediaType.logo}.jpg?access_token=${readToken()}` |
|
|
|
|
break |
|
|
|
|
return `https://cf-aws-staging.insports.tv/media/tournaments/${sportType}/${id}/${MediaType.logo}.jpg?access_token=${readToken()}` |
|
|
|
|
case sportType === SportTypes.BOXING: |
|
|
|
|
content = `https://images.insports.tv/${sportType}/${PROFILE_NAMES[profileType]}/${id}.png` |
|
|
|
|
break |
|
|
|
|
return `https://images.insports.tv/${sportType}/${PROFILE_NAMES[profileType]}/${id}.png` |
|
|
|
|
default: |
|
|
|
|
content = `${IMAGES_URLS[sportType]}/${PROFILE_NAMES[profileType]}/${size}/${id}.png` |
|
|
|
|
return `${IMAGES_URLS[sportType]}/${PROFILE_NAMES[profileType]}/${size}/${id}.png` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return content |
|
|
|
|
} |
|
|
|
|
|