Show only relative time if same day on close date
This commit is contained in:
parent
5df594e46a
commit
37d2be9384
|
@ -429,10 +429,13 @@ function EditableCloseDate(props: {
|
|||
className={isCreator ? 'cursor-pointer' : ''}
|
||||
onClick={() => isCreator && setIsEditingCloseTime(true)}
|
||||
>
|
||||
{isSameYear
|
||||
? dayJsCloseTime.format('MMM D')
|
||||
: dayJsCloseTime.format('MMM D, YYYY')}
|
||||
{isSameDay && <> ({fromNow(closeTime)})</>}
|
||||
{isSameDay ? (
|
||||
<span className={'capitalize'}> {fromNow(closeTime)}</span>
|
||||
) : isSameYear ? (
|
||||
dayJsCloseTime.format('MMM D')
|
||||
) : (
|
||||
dayJsCloseTime.format('MMM D, YYYY')
|
||||
)}
|
||||
</span>
|
||||
</DateTimeTooltip>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user