Skip to content

Commit

Permalink
fix: cell props per header
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 8, 2024
1 parent bebeb13 commit 69808a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/teacherDashboard/classes/class/StudentTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ const StudentTable: FC<StudentTableProps> = ({ classId }) => {
"Action",
]}
>
{users ? (
{users.length ? (
users.map(user => (
<tables.BodyRow key={`user-${user.id}`}>
<tables.Cell>{user.first_name}</tables.Cell>
<tables.Cell>
<tables.Cell width="70%">{user.first_name}</tables.Cell>
<tables.Cell align="center">
<Checkbox
onChange={event => {
setStudentUsers(
Expand All @@ -98,7 +98,7 @@ const StudentTable: FC<StudentTableProps> = ({ classId }) => {
}}
/>
</tables.Cell>
<tables.Cell>
<tables.Cell align="center">
<LinkButton
to={generatePath(
paths.teacher.dashboard.tab.classes.class.students
Expand All @@ -120,7 +120,7 @@ const StudentTable: FC<StudentTableProps> = ({ classId }) => {
</tables.Table>
)}
</TablePagination>
<Stack direction="row" gap={2}>
<Stack direction="row" gap={2} justifyContent="end">
{LinkButton<ReleaseStudentsState>({
children: "Release",
to: generatePath(
Expand Down

0 comments on commit 69808a8

Please sign in to comment.