Added routes

This commit is contained in:
Jose Selesan
2026-09-25 10:05:56 -03:00
parent 336e1af523
commit 94c353f4f2
100 changed files with 6126 additions and 183 deletions

View File

@@ -1,4 +1,5 @@
import { useEffect } from 'react'
import type { ReactNode } from 'react'
import { useQuery } from '@tanstack/react-query'
import { useNavigate } from '@tanstack/react-router'
import { Loader2 } from 'lucide-react'
@@ -6,7 +7,7 @@ import { useAuth } from '../../context/AuthProvider'
import { getOnboardingStatus } from '../../lib/api'
import { RootLayout } from './RootLayout'
export function AppLayoutGuard() {
export function AppLayoutGuard({ children }: { children: ReactNode }) {
const { user, isPending } = useAuth()
const navigate = useNavigate()
@@ -30,5 +31,5 @@ export function AppLayoutGuard() {
)
}
return <RootLayout />
return <RootLayout>{children}</RootLayout>
}