Skip to content

Commit d5f8135

Browse files
committed
add loader and other bugfixes
1 parent 5f88e52 commit d5f8135

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.changeset/seven-spies-fail.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"htmldocs": patch
3+
---
4+
5+
add loader

packages/htmldocs/src/app/components/sidebar/sidebar-directory-children.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export const SidebarDirectoryChildren = (props: {
7777

7878
return (
7979
<Link
80-
prefetch
8180
href={{
8281
pathname: `/preview/${documentSlug}`,
8382
search: searchParams.toString(),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use client';
2+
3+
import { Shell } from "~/components/shell";
4+
import path from "path";
5+
import { Spinner } from "@phosphor-icons/react";
6+
7+
export default function Loading() {
8+
return (
9+
<Shell pathSeparator={path.sep}>
10+
<div className="flex items-center justify-center h-[calc(100vh_-_70px)]">
11+
<Spinner className="h-6 w-6 text-slate-700 animate-spin" />
12+
</div>
13+
</Shell>
14+
);
15+
}

0 commit comments

Comments
 (0)