From 26384860f865c96d0ff27c763d2b29678fa22d2d Mon Sep 17 00:00:00 2001 From: mauro-balades Date: Sun, 1 Sep 2024 11:12:35 +0200 Subject: [PATCH] feat: Update ThemesMarketplace to use lazy loading for images --- src/app/themes/page.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/app/themes/page.tsx b/src/app/themes/page.tsx index 85b17b3..bed1214 100644 --- a/src/app/themes/page.tsx +++ b/src/app/themes/page.tsx @@ -5,21 +5,10 @@ import { Navigation } from "@/components/navigation"; import { getAllThemes, ZenTheme } from "@/lib/themes"; import { GetStaticProps } from "next"; -export const getStaticProps = (async (context) => { - const themes = await getAllThemes(); - return { - props: { - themes, - }, - }; -}) satisfies GetStaticProps<{ - themes: ZenTheme[]; -}> - -export default function ThemesMarketplace({ themes }: {themes:ZenTheme[]}) { +export default async function ThemesMarketplace() { return (
- +