Skip to content

Commit 8508e8d

Browse files
committed
feat: add list view components for learning modules and assignments
1 parent fff605e commit 8508e8d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/view/assignment-management/AssignmentList.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ import { Assignment } from '@/types/assignment'
1414
import { Class } from '@/types/class'
1515
import { LearningModule } from '@/types/learning-module'
1616

17+
interface AssignmentListProps {
18+
assignments: Assignment[]
19+
onEdit: (assignment: Assignment) => void
20+
onDelete: (assignment: Assignment) => void
21+
onViewSubmissions: (assignment: Assignment) => void
1722
isEditable?: boolean
1823
isTeacher?: boolean
1924
classes?: Class[]

src/view/learning-module-management/LearningModuleList.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ import TableHeader from '@/components/ui/table/table-header'
99
import TableRow from '@/components/ui/table/table-row'
1010
import Button from '@/components/ui/button'
1111
import { LearningModule } from '@/types/learning-module'
12+
import { Class } from '@/types/class'
13+
import { Subject } from '@/types/subject'
1214

1315
interface LearningModuleListProps {
1416
modules: LearningModule[]
17+
onEdit: (module: LearningModule) => void
1518
onDelete: (module: LearningModule) => void
1619
classes?: Class[]
1720
subjects?: Subject[]

0 commit comments

Comments
 (0)