From 44a550a67d4dfe9e0f93f83314e1f542c24fede1 Mon Sep 17 00:00:00 2001 From: Farber Denis Date: Fri, 7 Apr 2023 13:18:35 +0300 Subject: [PATCH] style(#in485): header background color changes for some tournaments fix(#in484): makefile fix style(in485): match card color fixed fix(#in485): makefile stage h fix --- src/config/lffTournaments.tsx | 4 ++++ src/features/ProfileHeader/hooks.tsx | 7 ++++++- src/helpers/getCardColor/index.tsx | 5 +++++ src/helpers/getColor/index.ts | 5 +++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/config/lffTournaments.tsx b/src/config/lffTournaments.tsx index ce3d1427..3756ce51 100644 --- a/src/config/lffTournaments.tsx +++ b/src/config/lffTournaments.tsx @@ -7,4 +7,8 @@ export const lffTournamentsList = [ 5975, 5976, 6004, + 1000045, + 1000046, + 1000047, + 1000048, ] diff --git a/src/features/ProfileHeader/hooks.tsx b/src/features/ProfileHeader/hooks.tsx index a5255e95..9e353386 100644 --- a/src/features/ProfileHeader/hooks.tsx +++ b/src/features/ProfileHeader/hooks.tsx @@ -47,10 +47,15 @@ export const useProfileColor = (profileId?: number) => { 5975, 5976, 6004, + 1000045, + 1000046, + 1000047, + 1000048, ] + // eslint-disable-next-line postro4no/function-args + if (client.name === 'lff' && profileId && lffColorConfig.includes(profileId)) { return getColor(profileId) } - return color } diff --git a/src/helpers/getCardColor/index.tsx b/src/helpers/getCardColor/index.tsx index bcb2fd8c..59890051 100644 --- a/src/helpers/getCardColor/index.tsx +++ b/src/helpers/getCardColor/index.tsx @@ -22,6 +22,11 @@ export const getCardColor = (id: number | undefined): string => { 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%);` + case 100045: + case 100046: + case 100047: + case 100048: + return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(55, 179, 72,1) 100%);` default: return defaultColor } diff --git a/src/helpers/getColor/index.ts b/src/helpers/getColor/index.ts index e6a7d4a6..ae5cc766 100644 --- a/src/helpers/getColor/index.ts +++ b/src/helpers/getColor/index.ts @@ -28,6 +28,11 @@ export const getColor = (id: number | undefined): string => { 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 1000045: + case 1000046: + case 1000047: + case 1000048: + return 'linear-gradient(255.69deg, #37B348 15.59%, #003E08 94.93%);' case 5665: case 23: case 2719: