From d78a72f08d787dfe13a06049abc12a36b0035d4d Mon Sep 17 00:00:00 2001 From: Rakov Roman Date: Fri, 30 Sep 2022 17:15:56 +0300 Subject: [PATCH] fix(#2893): added information about tournament group --- src/features/MatchCard/CardFrontside/index.tsx | 3 ++- src/features/Matches/helpers/prepareMatches.tsx | 2 ++ src/requests/getMatches/types.tsx | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/features/MatchCard/CardFrontside/index.tsx b/src/features/MatchCard/CardFrontside/index.tsx index 9a49493a..078cc708 100644 --- a/src/features/MatchCard/CardFrontside/index.tsx +++ b/src/features/MatchCard/CardFrontside/index.tsx @@ -59,6 +59,7 @@ export const CardFrontside = ({ access, countryId, date, + group, live, preview, previewURL, @@ -166,7 +167,7 @@ export const CardFrontside = ({ )} diff --git a/src/features/Matches/helpers/prepareMatches.tsx b/src/features/Matches/helpers/prepareMatches.tsx index fd694072..65f7f45b 100644 --- a/src/features/Matches/helpers/prepareMatches.tsx +++ b/src/features/Matches/helpers/prepareMatches.tsx @@ -13,6 +13,7 @@ const prepareMatch = (match: Match) => { calc, country_id, date: matchDate, + group, has_video, id, is_finished, @@ -32,6 +33,7 @@ const prepareMatch = (match: Match) => { countryId: country_id, date, formattedDate: format(date, 'dd.MM.yy'), + group, hasVideo: has_video, id, is_finished, diff --git a/src/requests/getMatches/types.tsx b/src/requests/getMatches/types.tsx index 48ece0cc..492a5dfc 100644 --- a/src/requests/getMatches/types.tsx +++ b/src/requests/getMatches/types.tsx @@ -21,6 +21,8 @@ export type Match = { calc: boolean, country_id: number, date: string, + /** Информация о турнире, если турнир входит в супер турнир */ + group: TournamentType, /** наличие mp4 видео */ has_video: boolean, id: number,