fix: archive button opens Drawer instead of navigating to separate page

This commit is contained in:
2026-07-06 16:58:54 +08:00
parent be75437861
commit 09eb9ca9e0

View File

@@ -1,5 +1,4 @@
import React, { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import {
Table,
Button,
@@ -71,7 +70,6 @@ interface EnrollmentInfo {
const StudentsPage: React.FC = () => {
const { modal } = App.useApp();
const navigate = useNavigate();
const [data, setData] = useState<any[]>([]);
const [loading, setLoading] = useState(false);
const [modalOpen, setModalOpen] = useState(false);
@@ -322,7 +320,7 @@ const StudentsPage: React.FC = () => {
permission="student:view"
size="small"
type="link"
onClick={() => navigate(`/students/${record.id}/profile`)}
onClick={() => openDrawer(record.id)}
>
</PermissionButton>