New header and backgroud style
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Layout } from '@/components/layout';
|
||||
import { NotFoundPage } from '@/features/not-found/not-found-page';
|
||||
import { ServerErrorPage } from '@/features/server-error/server-error-page';
|
||||
import type { ApiClient } from '@/lib/api-client';
|
||||
@@ -10,7 +11,17 @@ type RouterContext = {
|
||||
};
|
||||
|
||||
export const Route = createRootRouteWithContext<RouterContext>()({
|
||||
component: Outlet,
|
||||
component: RootRoute,
|
||||
errorComponent: ServerErrorPage,
|
||||
notFoundComponent: NotFoundPage,
|
||||
});
|
||||
|
||||
function RootRoute() {
|
||||
return (
|
||||
<Layout>
|
||||
<div className="flex flex-col p-6">
|
||||
<Outlet />
|
||||
</div>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user