mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-03 16:46:41 +07:00
added months passed to comments
This commit is contained in:
parent
3dfd886570
commit
0286b6f1a5
4 changed files with 7 additions and 6 deletions
src/components/comment/CommentDistance
|
@ -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,
|
||||
|
|
|
@ -9,4 +9,5 @@
|
|||
display: inline-flex;
|
||||
padding: 1px 10px 3px;
|
||||
border-radius: 12px;
|
||||
user-select: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue