feat: some location optimization

This commit is contained in:
2025-04-03 15:19:49 +03:00
parent fe9d21c218
commit 48ef8c495e
3 changed files with 7 additions and 7 deletions

View File

@@ -5,8 +5,8 @@ import LoginPage from "./pages/login";
import { AppProvider } from "./providers/AuthProvider";
const HomePage: FunctionComponent = () => {
const location = useLocation();
location.route("/login");
const { route } = useLocation();
route("/login");
return <div>Redirecting to login...</div>;
};