|
|
|
|
@ -7,8 +7,8 @@ import fpMap from 'lodash/fp/map' |
|
|
|
|
import fpOrderBy from 'lodash/fp/orderBy' |
|
|
|
|
|
|
|
|
|
import type { Matches, Content } from 'requests' |
|
|
|
|
import { SPORT_NAMES } from 'config' |
|
|
|
|
import { getProfileLogo } from 'helpers' |
|
|
|
|
import { ProfileTypes } from 'config' |
|
|
|
|
import { getProfileLogo, getSportLexic } from 'helpers' |
|
|
|
|
import { useLexicsStore } from 'features/LexicsStore' |
|
|
|
|
|
|
|
|
|
export type Props = { |
|
|
|
|
@ -48,19 +48,19 @@ const prepareMatches = (content: Array<Content>, suffix: string) => pipe( |
|
|
|
|
date, |
|
|
|
|
id, |
|
|
|
|
preview: '/images/preview.png', |
|
|
|
|
sportName: SPORT_NAMES[sport], |
|
|
|
|
sportName: getSportLexic(sport), |
|
|
|
|
sportType: sport, |
|
|
|
|
streamStatus: stream_status, |
|
|
|
|
team1Logo: getProfileLogo({ |
|
|
|
|
id: team1.id, |
|
|
|
|
profileType: 2, |
|
|
|
|
profileType: ProfileTypes.TEAMS, |
|
|
|
|
sportType: sport, |
|
|
|
|
}), |
|
|
|
|
team1Name: team1[`name_${suffix}` as Name], |
|
|
|
|
team1Score: team1.score, |
|
|
|
|
team2Logo: getProfileLogo({ |
|
|
|
|
id: team2.id, |
|
|
|
|
profileType: 2, |
|
|
|
|
profileType: ProfileTypes.TEAMS, |
|
|
|
|
sportType: sport, |
|
|
|
|
}), |
|
|
|
|
team2Name: team2[`name_${suffix}` as Name], |
|
|
|
|
|