fix(#2893): added information about tournament group

keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Rakov Roman 3 years ago
parent 71bed3848c
commit d78a72f08d
  1. 3
      src/features/MatchCard/CardFrontside/index.tsx
  2. 2
      src/features/Matches/helpers/prepareMatches.tsx
  3. 2
      src/requests/getMatches/types.tsx

@ -59,6 +59,7 @@ export const CardFrontside = ({
access, access,
countryId, countryId,
date, date,
group,
live, live,
preview, preview,
previewURL, previewURL,
@ -166,7 +167,7 @@ export const CardFrontside = ({
<TournamentSubtitle <TournamentSubtitle
sportType={sportType} sportType={sportType}
countryId={countryId} countryId={countryId}
tournament={tournament} tournament={tournament.is_super_tournament ? group : tournament}
/> />
)} )}
</Info> </Info>

@ -13,6 +13,7 @@ const prepareMatch = (match: Match) => {
calc, calc,
country_id, country_id,
date: matchDate, date: matchDate,
group,
has_video, has_video,
id, id,
is_finished, is_finished,
@ -32,6 +33,7 @@ const prepareMatch = (match: Match) => {
countryId: country_id, countryId: country_id,
date, date,
formattedDate: format(date, 'dd.MM.yy'), formattedDate: format(date, 'dd.MM.yy'),
group,
hasVideo: has_video, hasVideo: has_video,
id, id,
is_finished, is_finished,

@ -21,6 +21,8 @@ export type Match = {
calc: boolean, calc: boolean,
country_id: number, country_id: number,
date: string, date: string,
/** Информация о турнире, если турнир входит в супер турнир */
group: TournamentType,
/** наличие mp4 видео */ /** наличие mp4 видео */
has_video: boolean, has_video: boolean,
id: number, id: number,

Loading…
Cancel
Save