finish migration to less deps

This commit is contained in:
Chris Kruining 2025-03-31 14:49:31 +02:00
parent 3a762d2343
commit aa12f5443c
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
19 changed files with 94 additions and 142 deletions

View file

@ -1,6 +1,7 @@
import { ParentProps } from "solid-js";
import { Shell } from "~/features/shell";
export default function ShellPage(props) {
export default function ShellPage(props: ParentProps) {
return <Shell>{props.children}</Shell>;
}

View file

@ -4,9 +4,10 @@ import { HttpStatusCode } from "@solidjs/start";
export default function NotFound() {
return (
<main>
<Title>Not Found</Title>
<HttpStatusCode code={404} />
<h1>Page Not Found</h1>
<Title>Not Found</Title>
<HttpStatusCode code={404} />
<h1>Page Not Found</h1>
</main>
);
}

View file

@ -15,14 +15,12 @@ export default function Home() {
const highlight = createAsync(() => getEntry(14));
const categories = createAsync(() => listCategories());
console.log('page', highlight()?.id, categories?.length);
return (
<>
<Title>Home</Title>
<Show when={highlight() && categories()}>
<Overview highlight={highlight()} categories={categories()} />
<Overview highlight={highlight()!} categories={categories()!} />
</Show>
</>
);

View file

@ -3,7 +3,7 @@ import { Title } from "@solidjs/meta";
export default function Index() {
const title = 'Library';
return <>
<Title>{ title }</Title>
<Title>{title}</Title>
<h1>{title}</h1>
</>;
</>;
}

View file

@ -3,7 +3,7 @@ import { Title } from "@solidjs/meta";
export default function Index() {
const title = 'Manage';
return <>
<Title>{ title }</Title>
<Title>{title}</Title>
<h1>{title}</h1>
</>;
</>;
}

View file

@ -3,7 +3,7 @@ import { Title } from "@solidjs/meta";
export default function Index() {
const title = 'Search';
return <>
<Title>{ title }</Title>
<Title>{title}</Title>
<h1>{title}</h1>
</>;
</>;
}