chore: quick fix

This commit is contained in:
Sabir Hassan 2024-02-29 12:14:17 +05:00
parent dc6f7f1a83
commit f99d131b6c

View File

@ -29,12 +29,7 @@ const App = () => {
return ( return (
<Routes> <Routes>
<Route element={<MainLayout />}> <Route element={<MainLayout />}>
{authState?.loggedIn && ( {authState?.loggedIn && <Route path='/' element={<LandingPage />} />}
<Route
path='/'
element={<Navigate to={appPrivateRoutes.homePage} />}
/>
)}
{authState?.loggedIn && {authState?.loggedIn &&
privateRoutes.map((route, index) => ( privateRoutes.map((route, index) => (
<Route <Route