finish migration to less deps
This commit is contained in:
parent
3a762d2343
commit
aa12f5443c
19 changed files with 94 additions and 142 deletions
|
@ -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>;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
</>;
|
||||
</>;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
</>;
|
||||
</>;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
</>;
|
||||
</>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue