From 91f846f4b9af2597ae979c3eac2be6a52de31457 Mon Sep 17 00:00:00 2001 From: Mirlan Date: Mon, 13 Dec 2021 20:17:23 +0600 Subject: [PATCH] fix(1978): show date in live matches --- .../MatchCard/CardFrontside/index.tsx | 21 ++++++++----------- src/features/MatchCard/styled.tsx | 2 ++ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/features/MatchCard/CardFrontside/index.tsx b/src/features/MatchCard/CardFrontside/index.tsx index d46c24df..56dca4c9 100644 --- a/src/features/MatchCard/CardFrontside/index.tsx +++ b/src/features/MatchCard/CardFrontside/index.tsx @@ -114,18 +114,15 @@ export const CardFrontside = ({ )} {access === MatchAccess.CanBuyMatch && } - {live - ? ( - - - - ) - : ( - - {isHomePage ? null : formattedDate} - - - )} + + {isHomePage ? null : formattedDate} + + + {live && ( + + + + )} diff --git a/src/features/MatchCard/styled.tsx b/src/features/MatchCard/styled.tsx index 7b028717..d57fd222 100644 --- a/src/features/MatchCard/styled.tsx +++ b/src/features/MatchCard/styled.tsx @@ -88,6 +88,8 @@ export const MatchTimeInfo = styled.div` position: absolute; top: 0.519rem; padding: 0 0.519rem; + display: flex; + flex-direction: row; ` type MatchDateProps = {