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