|
|
|
|
@ -2,6 +2,8 @@ import React, { Fragment } from 'react' |
|
|
|
|
|
|
|
|
|
import isNull from 'lodash/isNull' |
|
|
|
|
|
|
|
|
|
import format from 'date-fns/format' |
|
|
|
|
|
|
|
|
|
import { getProfileUrl } from 'helpers' |
|
|
|
|
|
|
|
|
|
import { ProfileTypes } from 'config' |
|
|
|
|
@ -19,8 +21,11 @@ import { |
|
|
|
|
Tournament, |
|
|
|
|
Dash, |
|
|
|
|
StyledLink, |
|
|
|
|
DateStyled, |
|
|
|
|
} from './styled' |
|
|
|
|
|
|
|
|
|
const dateFormat = 'dd.MM.yyyy' |
|
|
|
|
|
|
|
|
|
type Props = { |
|
|
|
|
profile: MatchProfile, |
|
|
|
|
} |
|
|
|
|
@ -82,6 +87,7 @@ export const MatchProfileCard = ({ profile }: Props) => { |
|
|
|
|
{tournament?.name} |
|
|
|
|
</StyledLink> |
|
|
|
|
</Tournament> |
|
|
|
|
<DateStyled>{format(new Date(profile.date), dateFormat)}</DateStyled> |
|
|
|
|
</Fragment> |
|
|
|
|
)} |
|
|
|
|
</Wrapper> |
|
|
|
|
|