feat(ott-2712): lff changes

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Rita 3 years ago
parent a137a9036e
commit fce6b54dce
  1. 33655
      package-lock.json
  2. 1
      src/config/lffTournaments.tsx
  3. 2
      src/features/MatchSidePlaylists/components/EventsList/index.tsx
  4. 9
      src/features/ProfileHeader/hooks.tsx
  5. 8
      src/helpers/getCardColor/index.tsx
  6. 8
      src/helpers/getColor/index.ts

33655
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -2,6 +2,7 @@ export const lffTournamentsList = [
262, 262,
928, 928,
1620, 1620,
5858,
5975, 5975,
5976, 5976,
] ]

@ -67,7 +67,7 @@ export const EventsList = ({
active={isEqual(eventPlaylist, selectedPlaylist)} active={isEqual(eventPlaylist, selectedPlaylist)}
event={event} event={event}
isHomeTeam={isHomeTeam} isHomeTeam={isHomeTeam}
onClick={() => onSelect(eventPlaylist)} onClick={() => !profile?.live && onSelect(eventPlaylist)}
team={team} team={team}
/> />
</Event> </Event>

@ -40,7 +40,14 @@ export const useProfileColor = (profileId?: number) => {
) { ) {
return getColor(profileId) return getColor(profileId)
} }
const lffColorConfig = [928, 1620] const lffColorConfig = [
262,
928,
1620,
5858,
5975,
5976,
]
if (client.name === 'lff' && profileId && lffColorConfig.includes(profileId)) { if (client.name === 'lff' && profileId && lffColorConfig.includes(profileId)) {
return getColor(profileId) return getColor(profileId)
} }

@ -12,6 +12,14 @@ export const getCardColor = (id: number | undefined): string => {
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(49,186,177,1) 100%);` return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(49,186,177,1) 100%);`
case 1620: case 1620:
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(96,24,75,1) 100%);` return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(96,24,75,1) 100%);`
case 5976:
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(0,160,228,1) 100%);`
case 5975:
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(225,27,74,1) 100%);`
case 5858:
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%);`
default: default:
return defaultColor return defaultColor
} }

@ -18,6 +18,14 @@ export const getColor = (id: number | undefined): string => {
return 'linear-gradient(90deg, rgba(21,83,79,1) 0%, rgba(49,186,177,1) 100%);' return 'linear-gradient(90deg, rgba(21,83,79,1) 0%, rgba(49,186,177,1) 100%);'
case 1620: case 1620:
return 'linear-gradient(90deg, rgba(47,4,39,1) 0%, rgba(96,24,75,1) 100%);' return 'linear-gradient(90deg, rgba(47,4,39,1) 0%, rgba(96,24,75,1) 100%);'
case 5976:
return 'linear-gradient(90deg, rgba(13,94,129,1) 0%, rgba(0,160,228,1) 100%);'
case 5975:
return 'linear-gradient(90deg, rgba(140,13,43,1) 0%, rgba(225,27,74,1) 100%);'
case 5858:
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 5665: case 5665:
case 23: case 23:
case 2719: case 2719:

Loading…
Cancel
Save