feat: add breadcrumbs
This commit is contained in:
@@ -8,6 +8,7 @@ import { NotFoundPage } from "@/pages/not-found";
|
||||
import { RegisterPage } from "@/pages/register";
|
||||
import { SettingsPage } from "@/pages/settings";
|
||||
import { AppShell } from "@/shared/ui";
|
||||
import { AppBreadcrumbs } from "../ui/AppBreadcrumbs";
|
||||
|
||||
function Protected({ children }: { children: React.ReactNode }) {
|
||||
const { user, ready } = useAuth();
|
||||
@@ -53,7 +54,7 @@ export function AppRoutes() {
|
||||
<Route
|
||||
element={
|
||||
<Protected>
|
||||
<AppShell />
|
||||
<AppShell contentAboveOutlet={<AppBreadcrumbs />} />
|
||||
</Protected>
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user