CommentDate bugfix

This commit is contained in:
kvakazyambra 2023-06-12 21:19:14 +03:00
parent 1fb84173e6
commit b424ec9bca

View File

@ -22,11 +22,11 @@ export const CommentDate = (props: Props) => {
return (
<div class={clsx(styles.commentDates, { [styles.commentDatesLastInRow]: props.isLastInRow })}>
<time class={styles.date}>{formattedDate(props.comment.createdAt)()}</time>
<time class={styles.date}>{formattedDate(props.comment.createdAt)}</time>
<Show when={props.comment.updatedAt}>
<time class={styles.date}>
<Icon name="edit" class={styles.icon} />
{t('Edited')} {formattedDate(props.comment.updatedAt)()}
{t('Edited')} {formattedDate(props.comment.updatedAt)}
</time>
</Show>
</div>