fix(1978): show date in live matches

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

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

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