Add AuthProvider wrapper to App.tsx

cgen-f6c8c1f4cd064a08baa83a1cd74af076
This commit is contained in:
Builder.io 2025-08-06 00:04:44 +00:00
parent 6e4a890f31
commit a61dba33a8

View file

@ -27,85 +27,87 @@ const queryClient = new QueryClient();
const App = () => ( const App = () => (
<QueryClientProvider client={queryClient}> <QueryClientProvider client={queryClient}>
<TooltipProvider> <AuthProvider>
<Toaster /> <TooltipProvider>
<Sonner /> <Toaster />
<BrowserRouter> <Sonner />
<PageTransition> <BrowserRouter>
<Routes> <PageTransition>
<Route path="/" element={<Index />} /> <Routes>
<Route path="/onboarding" element={<Onboarding />} /> <Route path="/" element={<Index />} />
<Route path="/dashboard" element={<Dashboard />} /> <Route path="/onboarding" element={<Onboarding />} />
<Route path="/login" element={<Login />} /> <Route path="/dashboard" element={<Dashboard />} />
<Route path="/login" element={<Login />} />
{/* Service routes */} {/* Service routes */}
<Route path="/game-development" element={<GameDevelopment />} /> <Route path="/game-development" element={<GameDevelopment />} />
<Route path="/consulting" element={<DevelopmentConsulting />} /> <Route path="/consulting" element={<DevelopmentConsulting />} />
<Route path="/mentorship" element={<MentorshipPrograms />} /> <Route path="/mentorship" element={<MentorshipPrograms />} />
<Route path="/research" element={<ResearchLabs />} /> <Route path="/research" element={<ResearchLabs />} />
<Route path="/labs" element={<ResearchLabs />} /> <Route path="/labs" element={<ResearchLabs />} />
{/* Resource routes */} {/* Resource routes */}
<Route path="/docs" element={<Documentation />} /> <Route path="/docs" element={<Documentation />} />
<Route path="/blog" element={<Blog />} /> <Route path="/blog" element={<Blog />} />
<Route path="/community" element={<Community />} /> <Route path="/community" element={<Community />} />
<Route path="/support" element={<Support />} /> <Route path="/support" element={<Support />} />
{/* Placeholder routes for navigation links */} {/* Placeholder routes for navigation links */}
<Route <Route
path="/about" path="/about"
element={ element={
<Placeholder <Placeholder
title="About AeThex" title="About AeThex"
description="Learn more about our company, mission, and team." description="Learn more about our company, mission, and team."
/> />
} }
/> />
<Route <Route
path="/contact" path="/contact"
element={ element={
<Placeholder <Placeholder
title="Contact Us" title="Contact Us"
description="Get in touch with our team for support or inquiries." description="Get in touch with our team for support or inquiries."
/> />
} }
/> />
<Route <Route
path="/get-started" path="/get-started"
element={ element={
<Placeholder <Placeholder
title="Get Started" title="Get Started"
description="Begin your journey with AeThex tools and services." description="Begin your journey with AeThex tools and services."
/> />
} }
/> />
{/* Legal routes */} {/* Legal routes */}
<Route <Route
path="/privacy" path="/privacy"
element={ element={
<Placeholder <Placeholder
title="Privacy Policy" title="Privacy Policy"
description="Our commitment to protecting your privacy." description="Our commitment to protecting your privacy."
/> />
} }
/> />
<Route <Route
path="/terms" path="/terms"
element={ element={
<Placeholder <Placeholder
title="Terms of Service" title="Terms of Service"
description="Terms and conditions for using AeThex services." description="Terms and conditions for using AeThex services."
/> />
} }
/> />
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
<Route path="*" element={<NotFound />} /> <Route path="*" element={<NotFound />} />
</Routes> </Routes>
</PageTransition> </PageTransition>
</BrowserRouter> </BrowserRouter>
</TooltipProvider> </TooltipProvider>
</AuthProvider>
</QueryClientProvider> </QueryClientProvider>
); );