From 8c516d8673cc15a4f7a61ccd1eeeee6a539de520 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Fri, 9 Aug 2024 17:50:02 +0500 Subject: [PATCH] style: change comment time view --- app/components/Comments/Comments.Comment.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Comments/Comments.Comment.tsx b/app/components/Comments/Comments.Comment.tsx index 3261566..51f45d6 100644 --- a/app/components/Comments/Comments.Comment.tsx +++ b/app/components/Comments/Comments.Comment.tsx @@ -1,4 +1,4 @@ -import { unixToDate } from "#/api/utils"; +import { unixToDate, sinceUnixDate } from "#/api/utils"; import { useEffect, useState } from "react"; import { ENDPOINTS } from "#/api/config"; import { Button } from "flowbite-react"; @@ -101,7 +101,7 @@ export const CommentsComment = (props: { dateTime={props.comment.timestamp.toString()} title={unixToDate(props.comment.timestamp, "full")} > - {unixToDate(props.comment.timestamp)} + {sinceUnixDate(props.comment.timestamp)}