This commit is contained in:
Ren Amamiya
2023-06-09 18:26:24 +07:00
parent 0ba9877785
commit 61ab719a2f
7 changed files with 75 additions and 163 deletions

View File

@@ -8,7 +8,7 @@ export function LinkPreview({ urls }: { urls: string[] }) {
return (
<div className="mt-3 overflow-hidden rounded-lg bg-zinc-800">
{error && <p>failed to load</p>}
{isLoading && !data ? (
{isLoading || !data ? (
<p>Loading...</p>
) : (
<a