feat: complete admin panel major functionalities including responsive layout, recharts, custom modals, inline editing, and loading states

This commit is contained in:
parsa committed 2026-06-12 16:19:57 +03:30
1 parent ee041d4e52
commit a7ebb8d792
33 files changed
+1311 -173

No files matched your search

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