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

@ -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,

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

Loading…
Cancel
Save