|
|
|
|
@ -2,6 +2,7 @@ import { |
|
|
|
|
SportTypes, |
|
|
|
|
ProfileTypes, |
|
|
|
|
PROFILE_NAMES, |
|
|
|
|
isProduction, |
|
|
|
|
} from 'config' |
|
|
|
|
|
|
|
|
|
import { readToken } from 'helpers' |
|
|
|
|
@ -40,7 +41,7 @@ export const getProfileLogo = ({ |
|
|
|
|
}: GetLogoArgs) => { |
|
|
|
|
switch (true) { |
|
|
|
|
case isTournamentSuper: |
|
|
|
|
return `https://cf-aws-staging.insports.tv/media/tournaments/${sportType}/${id}/${MediaType.logo}.jpg?access_token=${readToken()}` |
|
|
|
|
return `https://cf-aws${isProduction ? '' : '-staging'}.insports.tv/media/supertournaments/${sportType}/${id}/${MediaType.logo}.jpg?access_token=${readToken()}` |
|
|
|
|
case sportType === SportTypes.BOXING: |
|
|
|
|
return `https://images.insports.tv/${sportType}/${PROFILE_NAMES[profileType]}/${id}.png` |
|
|
|
|
default: |
|
|
|
|
|