Skip to content

Commit

Permalink
chore: pdated @ecopages/core in apps to latest version, better typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Zanenghi committed Sep 14, 2024
1 parent 338babd commit a7739cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/docs/modules.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../../node_modules/@ecopages/core/src/declarations.d.ts" />
/// <reference path="../../node_modules/@ecopages/core/src/env.d.ts" />
2 changes: 1 addition & 1 deletion apps/docs/src/includes/head.kita.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function Head({ metadata, children }: PageHeadProps) {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Seo {...metadata} />
<link href="/styles/tailwind.css" rel="stylesheet" />
{children}
{children as 'safe'}
</head>
);
}
4 changes: 2 additions & 2 deletions apps/docs/src/includes/html.kita.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type { EcoComponent, HtmlTemplateProps } from '@ecopages/core';
const HtmlTemplate: EcoComponent<HtmlTemplateProps> = ({ children, metadata, headContent, language = 'en' }) => {
return (
<html lang={language}>
<Head metadata={metadata}>{headContent}</Head>
{children}
<Head metadata={metadata}>{headContent as 'safe'}</Head>
{children as 'safe'}
</html>
);
};
Expand Down
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit a7739cf

Please sign in to comment.