Redirect /profile to /dashboard and adjust header nav links
cgen-22e4b41b4e484d14a95d047c92359474
This commit is contained in:
parent
1fac35bf55
commit
1eb001e417
1 changed files with 2 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ import GetStarted from "./pages/GetStarted";
|
||||||
import Privacy from "./pages/Privacy";
|
import Privacy from "./pages/Privacy";
|
||||||
import Terms from "./pages/Terms";
|
import Terms from "./pages/Terms";
|
||||||
import Admin from "./pages/Admin";
|
import Admin from "./pages/Admin";
|
||||||
|
import { Navigate } from "react-router-dom";
|
||||||
import NotFound from "./pages/NotFound";
|
import NotFound from "./pages/NotFound";
|
||||||
|
|
||||||
const queryClient = new QueryClient();
|
const queryClient = new QueryClient();
|
||||||
|
|
@ -49,7 +50,7 @@ const App = () => (
|
||||||
<Route path="/onboarding" element={<Onboarding />} />
|
<Route path="/onboarding" element={<Onboarding />} />
|
||||||
<Route path="/dashboard" element={<Dashboard />} />
|
<Route path="/dashboard" element={<Dashboard />} />
|
||||||
<Route path="/admin" element={<Admin />} />
|
<Route path="/admin" element={<Admin />} />
|
||||||
<Route path="/profile" element={<Profile />} />
|
<Route path="/profile" element={<Navigate to="/dashboard" replace />} />
|
||||||
<Route path="/login" element={<Login />} />
|
<Route path="/login" element={<Login />} />
|
||||||
|
|
||||||
{/* Service routes */}
|
{/* Service routes */}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue