feat(router): register all form routes and wrap app with AuthProvider

This commit is contained in:
2026-02-22 00:16:58 +07:00
parent e825b82d1c
commit 58d74cb8c8
2 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -7,6 +7,7 @@ import {
ScrollRestoration,
} from "react-router";
import type { Route } from "./+types/root";
import { AuthProvider } from "@/app/context/auth-context";
import "./app.css";
export const links: Route.LinksFunction = () => [
@@ -41,7 +42,11 @@ export function Layout({ children }: { children: React.ReactNode }) {
}
export default function App() {
return <Outlet />;
return (
<AuthProvider>
<Outlet />
</AuthProvider>
);
}
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {