mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
fix(templates): add notFoundComponent to start root route (#10369)
This commit is contained in:
@@ -25,6 +25,12 @@ export const Route = createRootRoute({
|
||||
},
|
||||
],
|
||||
}),
|
||||
notFoundComponent: () => (
|
||||
<main className="container mx-auto p-4 pt-16">
|
||||
<h1>404</h1>
|
||||
<p>The requested page could not be found.</p>
|
||||
</main>
|
||||
),
|
||||
shellComponent: RootDocument,
|
||||
})
|
||||
|
||||
|
||||
@@ -23,6 +23,12 @@ export const Route = createRootRoute({
|
||||
},
|
||||
],
|
||||
}),
|
||||
notFoundComponent: () => (
|
||||
<main className="container mx-auto p-4 pt-16">
|
||||
<h1>404</h1>
|
||||
<p>The requested page could not be found.</p>
|
||||
</main>
|
||||
),
|
||||
shellComponent: RootDocument,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user