From 829305e1921661346a4747fefdb9e20edfd46b2f Mon Sep 17 00:00:00 2001 From: Anton Veselev Date: Fri, 12 Jul 2024 22:19:28 +0100 Subject: [PATCH] update --- src/containers/LeagueStage/Matrix.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/containers/LeagueStage/Matrix.tsx b/src/containers/LeagueStage/Matrix.tsx index 73cf2442..9070b994 100644 --- a/src/containers/LeagueStage/Matrix.tsx +++ b/src/containers/LeagueStage/Matrix.tsx @@ -175,6 +175,15 @@ function Matrix({ return o; }, [schedule]); + const getMatchdayColor = (index: number) => { + if (index === 0) { + return undefined; + } + const turn = (angleByIndex[index] ?? index) / (numMatchdays - 1); + const deg = turn * 360; + return `lch(50% 100 ${deg})`; + }; + const handleTableMouseOver = useCallback( (e: React.MouseEvent) => { const opponentId = @@ -253,10 +262,7 @@ function Matrix({ ) : ( {matchdayIndex + 1}