备份
diff --git a/src/components/AdminPage.tsx b/src/components/AdminPage.tsx
index 8c3f142..f3eac06 100644
--- a/src/components/AdminPage.tsx
+++ b/src/components/AdminPage.tsx
@@ -4,7 +4,12 @@ import AdminLogin from './AdminLogin';
import AdminDashboard from './AdminDashboard';
import { Toaster } from 'react-hot-toast';
-const AdminPage: React.FC = () => {
+interface AdminPageProps {
+ isDarkMode: boolean;
+ onToggleTheme: () => void;
+}
+
+const AdminPage: React.FC
= ({ isDarkMode, onToggleTheme }) => {
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [isLoading, setIsLoading] = useState(true);
@@ -34,7 +39,7 @@ const AdminPage: React.FC = () => {
return (
<>
{isLoggedIn ? (
-
+
) : (
)}