1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

added months passed to comments

This commit is contained in:
Fedor Katurov 2022-07-15 16:50:56 +07:00
parent 3dfd886570
commit 0286b6f1a5
4 changed files with 7 additions and 6 deletions

View file

@ -16,10 +16,6 @@ const CommentDistance: FC<CommentDistanceProps> = memo(({ firstDate, secondDate
return undefined;
}
if (differenceInDays(secondDate, firstDate) < 30) {
return undefined;
}
return formatDistance(secondDate, firstDate, {
locale: ru,
addSuffix: false,