changed - default page changed
This commit is contained in:
@@ -31,7 +31,7 @@ const NotFound = lazy(() => import("./pages/not-found"));
|
|||||||
function Router() {
|
function Router() {
|
||||||
return (
|
return (
|
||||||
<Switch>
|
<Switch>
|
||||||
<ProtectedRoute path="/" component={() => <Redirect to="/patients" />} />
|
<ProtectedRoute path="/" component={() => <Redirect to="/insurance-status" />} />
|
||||||
|
|
||||||
<ProtectedRoute path="/dashboard" component={() => <Dashboard />} />
|
<ProtectedRoute path="/dashboard" component={() => <Dashboard />} />
|
||||||
<ProtectedRoute
|
<ProtectedRoute
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export default function AuthPage() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (user) {
|
if (user) {
|
||||||
navigate("/patients");
|
navigate("/insurance-status");
|
||||||
}
|
}
|
||||||
}, [user, navigate]);
|
}, [user, navigate]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user