update link component icons

This commit is contained in:
Yee Jia Wei
2023-12-17 16:30:09 +08:00
parent e910172558
commit 500f7a338c
4 changed files with 16 additions and 33 deletions
@@ -1,10 +1,7 @@
import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCalendarDays } from "@fortawesome/free-regular-svg-icons";
import React from "react";
export default function LinkDate({
link,
}: {
export default function LinkDate({ link }: {
link: LinkIncludingShortenedCollectionAndTags;
}) {
const formattedDate = new Date(link.createdAt as string).toLocaleString(
@@ -18,7 +15,7 @@ export default function LinkDate({
return (
<div className="flex items-center gap-1 text-neutral">
<FontAwesomeIcon icon={faCalendarDays} className="w-4 h-4" />
<i className="bi-calendar3 text-lg"></i>
<p>{formattedDate}</p>
</div>
);