From 07425bb4873787ba4b28c070a1672f17da67537e Mon Sep 17 00:00:00 2001 From: Mirlan Date: Mon, 31 Aug 2020 15:49:42 +0600 Subject: [PATCH] Ott 319 team logo size (#115) --- src/features/MatchCard/CardSoon/index.tsx | 6 +++++- src/features/Matches/hooks.tsx | 3 ++- src/requests/getMatches.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/features/MatchCard/CardSoon/index.tsx b/src/features/MatchCard/CardSoon/index.tsx index e7b88ca0..32bde2c7 100644 --- a/src/features/MatchCard/CardSoon/index.tsx +++ b/src/features/MatchCard/CardSoon/index.tsx @@ -35,7 +35,11 @@ const TeamLogos = styled.div` ` const TeamLogo = styled.img` - width: 70px; + width: 60px; + + :last-child { + margin-left: 8px; + } ` const TeamName = styled(CommonTeamName)` diff --git a/src/features/Matches/hooks.tsx b/src/features/Matches/hooks.tsx index f391caae..3738f55a 100644 --- a/src/features/Matches/hooks.tsx +++ b/src/features/Matches/hooks.tsx @@ -10,6 +10,7 @@ import type { Matches, Content } from 'requests' import { ProfileTypes } from 'config' import { getProfileLogo, getSportLexic } from 'helpers' import { useLexicsStore } from 'features/LexicsStore' +import { MatchStatuses } from 'features/HeaderFilters' export type Props = { matches: Matches, @@ -23,7 +24,7 @@ export type Match = { preview: string, sportName: string, sportType: number, - streamStatus: number, + streamStatus: MatchStatuses, team1Logo: string, team1Name: string, team1Score: number, diff --git a/src/requests/getMatches.tsx b/src/requests/getMatches.tsx index cf8c76f4..dc67070d 100644 --- a/src/requests/getMatches.tsx +++ b/src/requests/getMatches.tsx @@ -37,7 +37,7 @@ export type Match = { date: string, id: number, round_id: number | null, - stream_status: number, + stream_status: MatchStatuses, team1: Team, team2: Team, }