feat: IDE
ci-front / build (push) Successful in 2m19s

This commit is contained in:
nikita
2026-04-04 04:59:42 +03:00
parent 9d1096a9b4
commit f537f1eab9
20 changed files with 2884 additions and 15 deletions
@@ -1,12 +1,12 @@
import { useAuthStore } from "@/store/auth/auth.store";
import { useAuthStore } from "@/modules/auth/store/useAuthStore";
import { Navigate } from "react-router-dom";
export const ProtectedRoute = ({ children }: { children: React.ReactNode }) => {
const { isAuthenticated } = useAuthStore();
if (!isAuthenticated) {
return <Navigate to="/auth" replace />;
}
// if (!isAuthenticated) {
// return <Navigate to="/auth" replace />;
// }
return <>{children}</>;
};