Skip to content

Commit

Permalink
fix: disable authentication protecting home, profile, event-dashboard…
Browse files Browse the repository at this point in the history
… routes
  • Loading branch information
nanyi-deng committed Oct 29, 2024
1 parent 8da5667 commit 184719a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ const App: React.FC = () => {
<Routes>
<Route path="/login" element={<Login setUser={setUser} />} />
<Route path="/signup" element={<SignUp />} />
{user !== null && <>
{/* {user !== null && <> */}
<Route path="/" element={<Home isDarkMode={isDarkMode} />} />
<Route path="/profile" element={<Profile isDarkMode={isDarkMode} user={user} />} />
<Route
path="/events-dashboard"
element={<EventsDashboard isDarkMode={isDarkMode} />}
/>
</>}
{/* </>} */}
</Routes>
</Router>
);
Expand Down

0 comments on commit 184719a

Please sign in to comment.