Skip to content

Commit

Permalink
release button
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 2, 2024
1 parent 1e1cb83 commit 4dd7e85
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pages/teacherDashboard/classes/class/StudentTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { SecurityOutlined as SecurityOutlinedIcon } from "@mui/icons-material"
import { generatePath } from "react-router-dom"

import { type ListUsersResult } from "../../../../api/user"
import { type ReleaseStudentsState } from "../releaseStudents/ReleaseStudents"
import ResetStudentsPasswordDialog from "./ResetStudentsPasswordDialog"
import { type TransferStudentsState } from "../transferStudents/TransferStudents"
import { paths } from "../../../../routes"
Expand Down Expand Up @@ -57,6 +58,14 @@ const StudentTable: FC<StudentTableProps> = ({ classId }) => {
),
state: { studentUsers: Object.values(studentUsers) },
})}
{LinkButton<ReleaseStudentsState>({
children: "Release",
to: generatePath(
paths.teacher.dashboard.tab.classes.class.students.release._,
{ classId },
),
state: { studentUsers: Object.values(studentUsers) },
})}
</Stack>
<ResetStudentsPasswordDialog
classId={classId}
Expand Down

0 comments on commit 4dd7e85

Please sign in to comment.