File tree 3 files changed +20
-1
lines changed
packages/htmldocs/src/app
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " htmldocs " : patch
3
+ ---
4
+
5
+ add loader
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ export const SidebarDirectoryChildren = (props: {
77
77
78
78
return (
79
79
< Link
80
- prefetch
81
80
href = { {
82
81
pathname : `/preview/${ documentSlug } ` ,
83
82
search : searchParams . toString ( ) ,
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments