Finalize CRM transformation, mobile responsiveness, and Qdrant integration

This commit is contained in:
2026-06-06 13:31:31 +05:30
parent a162fa89e5
commit 59fc91f034
45 changed files with 2052 additions and 4430 deletions

View File

@@ -0,0 +1,11 @@
import { Navigate, Outlet } from 'react-router-dom';
export default function AuthGuard({ children }) {
const token = localStorage.getItem('auth_token');
if (!token) {
return <Navigate to="/login" replace />;
}
return children || <Outlet />;
}