feat(in-716): changed jpg to png

pull/265/head
Margarita 2 years ago committed by Gitea
parent f9823d191f
commit 01786d947a
  1. 4
      src/helpers/getProfileLogo/__tests__/index.tsx
  2. 2
      src/helpers/getProfileLogo/index.tsx

@ -14,12 +14,12 @@ describe('getLogo helper', () => {
id: 1,
profileType: ProfileTypes.TEAMS,
sportType: 3,
})).toBe('https://cf-aws.insports.tv/media/teams/3/1/logo.jpg')
})).toBe('https://cf-aws.insports.tv/media/teams/3/1/logo.png')
expect(getProfileLogo({
id: 1,
profileType: ProfileTypes.TOURNAMENTS,
sportType: 2,
})).toBe('https://cf-aws.insports.tv/media/tournaments/2/1/logo.jpg')
})).toBe('https://cf-aws.insports.tv/media/tournaments/2/1/logo.png')
})
})

@ -15,4 +15,4 @@ export const getProfileLogo = ({
id,
profileType,
sportType,
}: GetLogoArgs) => `${URL_AWS}/media/${PROFILE_NAMES[profileType]}/${sportType}/${id}/${profileType === ProfileTypes.PLAYERS ? 'photo.png' : 'logo.jpg'}`
}: GetLogoArgs) => `${URL_AWS}/media/${PROFILE_NAMES[profileType]}/${sportType}/${id}/${profileType === ProfileTypes.PLAYERS ? 'photo.png' : 'logo.png'}`

Loading…
Cancel
Save