From 0f9bcbdaca7de2e0477595177d50d88876be94f8 Mon Sep 17 00:00:00 2001 From: wangziqi Date: Mon, 6 Jul 2026 16:46:03 +0800 Subject: [PATCH] fix: import Tabs/Descriptions, remove duplicate state --- apps/admin/src/pages/Students/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/admin/src/pages/Students/index.tsx b/apps/admin/src/pages/Students/index.tsx index d9ccbd5..df29523 100644 --- a/apps/admin/src/pages/Students/index.tsx +++ b/apps/admin/src/pages/Students/index.tsx @@ -17,6 +17,8 @@ import { Col, Card, Drawer, + Tabs, + Descriptions, } from 'antd'; import { PlusOutlined, @@ -82,11 +84,8 @@ const StudentsPage: React.FC = () => { const [archivedCount, setArchivedCount] = useState(0); const [selectedRowKeys, setSelectedRowKeys] = useState([]); const [enrollmentData, setEnrollmentData] = useState>({}); - const [form] = Form.useForm(); const [drawerOpen, setDrawerOpen] = useState(false); - const [drawerStudentId, setDrawerStudentId] = useState(null); const [drawerData, setDrawerData] = useState(null); - const [drawerLoading, setDrawerLoading] = useState(false); const openDrawer = async (studentId: number) => { setDrawerStudentId(studentId);