import React from 'react';
import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import { useSelector } from 'react-redux';
import Login from './pages/Login';
import Layout from './components/Layout';
import Dashboard from './pages/Dashboard';
import PointTypeManagement from './pages/points/PointTypeManagement';
import PointProjectManagement from './pages/points/PointProjectManagement';
import DeclarationRuleManagement from './pages/points/DeclarationRuleManagement';
import ActivityList from './pages/activity/ActivityList';
import ActivityCreate from './pages/activity/ActivityCreate';
import ActivityEdit from './pages/activity/ActivityEdit';
import RegistrationManagement from './pages/activity/RegistrationManagement';
import RegistrationDetail from './pages/activity/RegistrationDetail';
import VolunteerList from './pages/volunteer/VolunteerList';
import VolunteerPoints from './pages/volunteer/VolunteerPoints';
import VolunteerDetail from './pages/volunteer/VolunteerDetail';
import StatisticsOverview from './pages/statistics/StatisticsOverview';
import StatisticsTrends from './pages/statistics/StatisticsTrends';
import ReportCenter from './pages/statistics/ReportCenter';
import UserManagement from './pages/system/UserManagement';
import AdminManagement from './pages/system/AdminManagement';
import PermissionManagement from './pages/system/PermissionManagement';
import SystemSettings from './pages/system/SystemSettings';
function App() {
const { isAuthenticated } = useSelector((state) => state.auth);
if (!isAuthenticated) {
return (
} />
} />
);
}
return (
} />
} />
{/* 积分管理 */}
{/* } />
} /> */}
} />
{/* 活动管理 */}
} />
} />
} />
} />
} />
{/* 志愿者管理 */}
} />
} />
} />
{/* 统计分析 */}
} />
} />
} />
{/* 系统设置 */}
} />
} />
} />
} />
} />
);
}
export default App;