mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-07 00:34:41 +00:00
style: change comment time view
This commit is contained in:
parent
c5112e05be
commit
8c516d8673
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { unixToDate } from "#/api/utils";
|
import { unixToDate, sinceUnixDate } from "#/api/utils";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { ENDPOINTS } from "#/api/config";
|
import { ENDPOINTS } from "#/api/config";
|
||||||
import { Button } from "flowbite-react";
|
import { Button } from "flowbite-react";
|
||||||
|
@ -101,7 +101,7 @@ export const CommentsComment = (props: {
|
||||||
dateTime={props.comment.timestamp.toString()}
|
dateTime={props.comment.timestamp.toString()}
|
||||||
title={unixToDate(props.comment.timestamp, "full")}
|
title={unixToDate(props.comment.timestamp, "full")}
|
||||||
>
|
>
|
||||||
{unixToDate(props.comment.timestamp)}
|
{sinceUnixDate(props.comment.timestamp)}
|
||||||
</time>
|
</time>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue