feat(#2795): add tournament 6004 to lff platform

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Andrei Dekterev 3 years ago
parent 03110eb825
commit b9de509132
  1. 1
      src/config/lffTournaments.tsx
  2. 1
      src/features/ProfileHeader/hooks.tsx
  3. 2
      src/helpers/getCardColor/index.tsx
  4. 2
      src/helpers/getColor/index.ts

@ -5,4 +5,5 @@ export const lffTournamentsList = [
5858,
5975,
5976,
6004,
]

@ -47,6 +47,7 @@ export const useProfileColor = (profileId?: number) => {
5858,
5975,
5976,
6004,
]
if (client.name === 'lff' && profileId && lffColorConfig.includes(profileId)) {
return getColor(profileId)

@ -20,6 +20,8 @@ export const getCardColor = (id: number | undefined): string => {
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(252,162,78, 1) 100%);`
case 262:
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(192,166,96,1) 100%);`
case 6004:
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(79,81,205,1) 100%);`
default:
return defaultColor
}

@ -26,6 +26,8 @@ export const getColor = (id: number | undefined): string => {
return 'linear-gradient(90deg, rgba(184,99,21,1) 0%, rgba(252,162,78, 1) 100%);'
case 262:
return 'linear-gradient(90deg, rgba(114,103,76,1) 0%, rgba(192,166,96,1) 100%);'
case 6004:
return 'linear-gradient(255.69deg, #474AF1 15.59%, #202284 94.93%);'
case 5665:
case 23:
case 2719:

Loading…
Cancel
Save