fix(1978): show date in live matches

keep-around/91f846f4b9af2597ae979c3eac2be6a52de31457
Mirlan 4 years ago
parent f3c5241498
commit 91f846f4b9
  1. 21
      src/features/MatchCard/CardFrontside/index.tsx
  2. 2
      src/features/MatchCard/styled.tsx

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

@ -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 = {

Loading…
Cancel
Save