mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
fix(ui): replace children cast to any with hono/jsx Child type
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ dist/
|
|||||||
coverage/
|
coverage/
|
||||||
.wrangler/
|
.wrangler/
|
||||||
.dev.vars
|
.dev.vars
|
||||||
|
src/scripts/generated/
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
.env
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
"test:coverage": "vitest run --coverage",
|
"test:coverage": "vitest run --coverage",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"prepare": "husky"
|
"prepare": "husky && npm run build:client"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{ts,js}": [
|
"*.{ts,js}": [
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { interactiveScripts } from "../../scripts/index";
|
|||||||
|
|
||||||
type LayoutProps = {
|
type LayoutProps = {
|
||||||
title: string;
|
title: string;
|
||||||
children: unknown;
|
children: import("hono/jsx").Child;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Layout = ({ title, children }: LayoutProps) => {
|
export const Layout = ({ title, children }: LayoutProps) => {
|
||||||
@@ -17,7 +17,7 @@ export const Layout = ({ title, children }: LayoutProps) => {
|
|||||||
<style dangerouslySetInnerHTML={{ __html: designSystem }} />
|
<style dangerouslySetInnerHTML={{ __html: designSystem }} />
|
||||||
<script dangerouslySetInnerHTML={{ __html: interactiveScripts + ";" }} />
|
<script dangerouslySetInnerHTML={{ __html: interactiveScripts + ";" }} />
|
||||||
</head>
|
</head>
|
||||||
<body class="page">{children as any}</body>
|
<body class="page">{children}</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user