mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 07:08:12 +02:00
feat: Implement initial application structure with routing, authentication flow, and responsive layout.
This commit is contained in:
1 parent
7592c2781e
commit
f27a75d9d6
3 files changed
+157
-154
No files matched your search
@@ -55,12 +55,9 @@ function PublicRoute({ children }) {
|
||||
}
|
||||
|
||||
function AppRoutes() {
|
||||
const { theme, toggleTheme } = useTheme();
|
||||
const { isAuthenticated } = useAuth();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Toaster position="bottom-right" theme={theme} />
|
||||
<Toaster position="bottom-right" />
|
||||
<Routes>
|
||||
<Route
|
||||
path="/login"
|
||||
@@ -74,7 +71,7 @@ function AppRoutes() {
|
||||
path="/*"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<Layout theme={theme} toggleTheme={toggleTheme}>
|
||||
<Layout>
|
||||
<Routes>
|
||||
<Route path="/" element={<Dashboard />} />
|
||||
<Route path="/search" element={<Search />} />
|
||||
|
||||
Reference in new issue
Block a user