fix(#ott1977): macthcard - removed date block when live is on (#572)

Co-authored-by: Farber Denis <denis.farber@instatsport.com>
keep-around/100b3f5493bc24e9889c376dcfc797564582c41c
Farber Denis 4 years ago committed by GitHub
parent e1cf50429f
commit 1b9f0f8251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      src/features/MatchCard/CardFrontside/index.tsx

@ -118,18 +118,20 @@ export const CardFrontside = ({
)} )}
{access === MatchAccess.CanBuyMatch && <BuyMatchBadge />} {access === MatchAccess.CanBuyMatch && <BuyMatchBadge />}
<MatchTimeInfo> <MatchTimeInfo>
<MatchDate isHomePage={isHomePage}> {live
{isHomePage ? null : formattedDate} ? (
<LiveSign>
{(isInFuture && (!hasVideo || !storage)) <T9n t='live' />
? <Time>{time}</Time> </LiveSign>
: null} )
</MatchDate> : (
{live && ( <MatchDate isHomePage={isHomePage}>
<LiveSign> {isHomePage ? null : formattedDate}
<T9n t='live' /> {(isInFuture && (!hasVideo || !storage))
</LiveSign> ? <Time>{time}</Time>
)} : null}
</MatchDate>
)}
</MatchTimeInfo> </MatchTimeInfo>
</PreviewWrapper> </PreviewWrapper>
<Info> <Info>

Loading…
Cancel
Save