Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a1a58f7

Browse files
author
Je
committed
refactor: update exports
1 parent 3b3bb8a commit a1a58f7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'https://esm.sh/react'
2-
import Head from './head.ts'
2+
import { Head } from './head.ts'
33

44
const e501AppEl = React.createElement(
55
ErrorPage,

head.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function applyCSS(id: string, css: string, asLink: boolean = false) {
7676
}
7777
}
7878

79-
export default function Head({ children }: PropsWithChildren<{}>) {
79+
export function Head({ children }: PropsWithChildren<{}>) {
8080
if (window.Deno) {
8181
parse(children).forEach(({ type, props }) => serverHeadElements.push({ type, props }))
8282
}

mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { redirect } from './aleph.ts'
22
export * from './context.ts'
3-
export { default as Head, SEO, Viewport } from './head.ts'
3+
export { Head, SEO, Viewport } from './head.ts'
44
export * from './hooks.ts'
55
export { Link, NavLink } from './link.ts'
66
export const Import = (_: { from: string }) => null

0 commit comments

Comments
 (0)