This commit is contained in:
Isaac Wise
2024-07-27 17:41:13 -05:00
parent 4faf389a2b
commit 94be3a7448
34 changed files with 308 additions and 256 deletions
+9 -7
View File
@@ -192,7 +192,8 @@ export default function ReadableView({ link }: Props) {
>
<i className="bi-link-45deg"></i>
{isValidUrl(link?.url || "") && new URL(link?.url as string).host}
{isValidUrl(link?.url || "") &&
new URL(link?.url as string).host}
</Link>
)}
</div>
@@ -229,10 +230,10 @@ export default function ReadableView({ link }: Props) {
<p className="min-w-fit text-sm text-neutral">
{date
? new Date(date).toLocaleString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
})
year: "numeric",
month: "long",
day: "numeric",
})
: undefined}
</p>
@@ -257,8 +258,9 @@ export default function ReadableView({ link }: Props) {
></div>
) : (
<div
className={`w-full h-full flex flex-col justify-center p-10 ${link?.readable === "pending" || !link?.readable ? "skeleton" : ""
}`}
className={`w-full h-full flex flex-col justify-center p-10 ${
link?.readable === "pending" || !link?.readable ? "skeleton" : ""
}`}
>
<svg
xmlns="http://www.w3.org/2000/svg"