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 />} {access === MatchAccess.CanBuyMatch && <BuyMatchBadge />}
<MatchTimeInfo> <MatchTimeInfo>
{live <MatchDate isHomePage={isHomePage}>
? ( {isHomePage ? null : formattedDate}
<LiveSign> <Time>{time}</Time>
<T9n t='live' /> </MatchDate>
</LiveSign> {live && (
) <LiveSign>
: ( <T9n t='live' />
<MatchDate isHomePage={isHomePage}> </LiveSign>
{isHomePage ? null : formattedDate} )}
<Time>{time}</Time>
</MatchDate>
)}
</MatchTimeInfo> </MatchTimeInfo>
</PreviewWrapper> </PreviewWrapper>
<Info> <Info>

@ -88,6 +88,8 @@ export const MatchTimeInfo = styled.div`
position: absolute; position: absolute;
top: 0.519rem; top: 0.519rem;
padding: 0 0.519rem; padding: 0 0.519rem;
display: flex;
flex-direction: row;
` `
type MatchDateProps = { type MatchDateProps = {

Loading…
Cancel
Save