feat: refactoring, soem work on forms

This commit is contained in:
2026-09-13 23:17:37 +02:00
parent fa07d4cc0b
commit 0dbbe5361a
17 changed files with 260 additions and 116 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
import Header from "../components/Header.tsx";
import { define, isLoggedIn } from "../utils.ts";
import { define } from "../utils.ts";
export default define.page(function App(ctx) {
const Component = ctx.Component;
const loggedIn = isLoggedIn(ctx.req);
return (
<html data-theme="light">
@@ -13,7 +12,7 @@ export default define.page(function App(ctx) {
<title>Deno Fresh Dummy</title>
</head>
<body>
<Header loggedIn={loggedIn} />
<Header loggedIn={ctx.state.loggedIn} />
<Component />
</body>
</html>