mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-08-05 00:54:16 +00:00
fix(ui): replace children cast to any with hono/jsx Child type
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
0e1592f8c6
commit
d64f703820
@@ -3,7 +3,7 @@ import { interactiveScripts } from "../../scripts/index";
|
||||
|
||||
type LayoutProps = {
|
||||
title: string;
|
||||
children: unknown;
|
||||
children: import("hono/jsx").Child;
|
||||
};
|
||||
|
||||
export const Layout = ({ title, children }: LayoutProps) => {
|
||||
@@ -17,7 +17,7 @@ export const Layout = ({ title, children }: LayoutProps) => {
|
||||
<style dangerouslySetInnerHTML={{ __html: designSystem }} />
|
||||
<script dangerouslySetInnerHTML={{ __html: interactiveScripts + ";" }} />
|
||||
</head>
|
||||
<body class="page">{children as any}</body>
|
||||
<body class="page">{children}</body>
|
||||
</html>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user