fix: make it work with new vite
This commit is contained in:
@@ -27,7 +27,7 @@ export const handler = define.handlers({
|
||||
},
|
||||
});
|
||||
|
||||
export default function Greet(
|
||||
export default define.page(function (
|
||||
props: PageProps<
|
||||
{ article: ArticleResource; session: Record<string, string> }
|
||||
>,
|
||||
@@ -104,4 +104,4 @@ export default function Greet(
|
||||
</div>
|
||||
</MainLayout>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -6,7 +6,6 @@ import { Grid } from "@components/Grid.tsx";
|
||||
import { RedirectSearchHandler } from "@islands/Search.tsx";
|
||||
import { parseResourceUrl, searchResource } from "@lib/search.ts";
|
||||
import { ResourceCard } from "@components/Card.tsx";
|
||||
import { Link } from "@islands/Link.tsx";
|
||||
import { listResources } from "@lib/marka/index.ts";
|
||||
import { define } from "../../utils.ts";
|
||||
import { TbArrowLeft } from "@preact-icons/tb";
|
||||
@@ -22,7 +21,7 @@ export const handler = define.handlers({
|
||||
},
|
||||
});
|
||||
|
||||
export default define.page(function Greet(
|
||||
export default define.page(function (
|
||||
props: PageProps<
|
||||
{ articles: ArticleResource[] | null; searchResults: GenericResource[] }
|
||||
>,
|
||||
@@ -36,13 +35,13 @@ export default define.page(function Greet(
|
||||
searchResults={searchResults}
|
||||
>
|
||||
<header class="flex gap-4 items-center mb-5 md:hidden">
|
||||
<Link
|
||||
<a
|
||||
class="px-4 ml-4 py-2 bg-gray-300 text-gray-800 rounded-lg flex items-center gap-1"
|
||||
href="/"
|
||||
>
|
||||
<TbArrowLeft class="w-5 h-5" />
|
||||
Back
|
||||
</Link>
|
||||
</a>
|
||||
|
||||
<h3 class="text-2xl text-white font-light">📝 Articles</h3>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user