Skip to content

Commit 7f77794

Browse files
Fix document title: use correct TanStack Router head format and render HeadContent
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
1 parent 97c88ed commit 7f77794

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

apps/web/src/routes/__root.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ThreadId } from "@t3tools/contracts";
22
import {
3+
HeadContent,
34
Outlet,
45
createRootRouteWithContext,
56
type ErrorComponentProps,
@@ -27,26 +28,30 @@ export const Route = createRootRouteWithContext<{
2728
component: RootRouteView,
2829
errorComponent: RootRouteErrorView,
2930
head: () => ({
30-
meta: [{ name: "title", content: APP_DISPLAY_NAME }],
31+
meta: [{ title: APP_DISPLAY_NAME }],
3132
}),
3233
});
3334

3435
function RootRouteView() {
3536
if (!readNativeApi()) {
3637
return (
37-
<div className="flex h-screen flex-col bg-background text-foreground">
38-
<div className="flex flex-1 items-center justify-center">
39-
<p className="text-sm text-muted-foreground">
40-
Connecting to {APP_DISPLAY_NAME} server...
41-
</p>
38+
<>
39+
<HeadContent />
40+
<div className="flex h-screen flex-col bg-background text-foreground">
41+
<div className="flex flex-1 items-center justify-center">
42+
<p className="text-sm text-muted-foreground">
43+
Connecting to {APP_DISPLAY_NAME} server...
44+
</p>
45+
</div>
4246
</div>
43-
</div>
47+
</>
4448
);
4549
}
4650

4751
return (
4852
<ToastProvider>
4953
<AnchoredToastProvider>
54+
<HeadContent />
5055
<EventRouter />
5156
<DesktopProjectBootstrap />
5257
<Outlet />

0 commit comments

Comments
 (0)