diff --git a/routes/index.tsx b/routes/index.tsx index 0dfebab..6feee06 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -1,25 +1,21 @@ import { Head } from "$fresh/runtime.ts"; -import { useSignal } from "@preact/signals"; -import {Button} from "../components/Button.tsx"; -import { PageDescription, get_pages_meta } from "../pages.ts"; +import { get_pages_meta, PageDescription } from "../pages.ts"; import { Handlers, PageProps } from "$fresh/server.ts"; export const handler: Handlers = { - async GET(_req, ctx){ - const [pages,_] = await get_pages_meta(); + async GET(_req, ctx) { + const [pages, _] = await get_pages_meta(); return await ctx.render(pages); - } -} + }, +}; -export default function Home({data}: PageProps) { - const count = useSignal(3); - +export default function Home({ data }: PageProps) { return ( <> stock-front -
+
) {

Stock