Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Sep 24, 2023
1 parent 5c67e1b commit 2cec97e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions websites/demo-react-image-next/src/app/load/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import { Suspense } from "@suspensive/react";
import Link from "next/link";
import { Area, Spinner } from "~/components/uis";

const BoundaryPage = () => (
<div>
<Link href="/">to home</Link>
<Area title="Load">
<Suspense.CSROnly fallback={<Spinner />}>
<Load src="https://ik.imagekit.io/ikmedia/women-dress-2.jpg">
{/* eslint-disable-next-line @next/next/no-img-element */}
{(loaded) => <img src={loaded.src} />}
</Load>
</Suspense.CSROnly>
</Area>
</div>
);

export default BoundaryPage;
export default function Page() {
return (
<div>
<Link href="/">to home</Link>
<Area title="Load">
<Suspense.CSROnly fallback={<Spinner />}>
<Load src="https://ik.imagekit.io/ikmedia/women-dress-2.jpg">
{/* eslint-disable-next-line @next/next/no-img-element */}
{(loaded) => <img src={loaded.src} />}
</Load>
</Suspense.CSROnly>
</Area>
</div>
);
}

0 comments on commit 2cec97e

Please sign in to comment.