From b9de5091327fa6bc400d5aa755ea057e399ee791 Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Wed, 7 Sep 2022 12:37:45 +0400 Subject: [PATCH] feat(#2795): add tournament 6004 to lff platform --- src/config/lffTournaments.tsx | 1 + src/features/ProfileHeader/hooks.tsx | 1 + src/helpers/getCardColor/index.tsx | 2 ++ src/helpers/getColor/index.ts | 2 ++ 4 files changed, 6 insertions(+) diff --git a/src/config/lffTournaments.tsx b/src/config/lffTournaments.tsx index d52bf663..b5d5f104 100644 --- a/src/config/lffTournaments.tsx +++ b/src/config/lffTournaments.tsx @@ -5,4 +5,5 @@ export const lffTournamentsList = [ 5858, 5975, 5976, + 6004, ] diff --git a/src/features/ProfileHeader/hooks.tsx b/src/features/ProfileHeader/hooks.tsx index 9fdb4805..4307813b 100644 --- a/src/features/ProfileHeader/hooks.tsx +++ b/src/features/ProfileHeader/hooks.tsx @@ -47,6 +47,7 @@ export const useProfileColor = (profileId?: number) => { 5858, 5975, 5976, + 6004, ] if (client.name === 'lff' && profileId && lffColorConfig.includes(profileId)) { return getColor(profileId) diff --git a/src/helpers/getCardColor/index.tsx b/src/helpers/getCardColor/index.tsx index ea76f13a..bcb2fd8c 100644 --- a/src/helpers/getCardColor/index.tsx +++ b/src/helpers/getCardColor/index.tsx @@ -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 } diff --git a/src/helpers/getColor/index.ts b/src/helpers/getColor/index.ts index 81ca1f82..a8f8d372 100644 --- a/src/helpers/getColor/index.ts +++ b/src/helpers/getColor/index.ts @@ -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: