Skip to content

Commit 7c5f46f

Browse files
committed
fix: type and remove unrelated change
1 parent 739a8fc commit 7c5f46f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/app/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export interface PaginatedResponse<T> {
5858
start: number;
5959
results: T[];
6060
}
61-
export interface CellValue {
61+
export interface CellValue<T> {
6262
row: {
63-
original: object;
64-
}
63+
original: T;
64+
};
6565
}

src/courses/components/CoursesList.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ import { useCatalogCourses, useDeleteCatalogCourse } from '../hooks';
1414

1515
import messages from '../messages';
1616

17-
interface CoursesCell extends CellValue {
18-
row: {
19-
original: CorporateCourse;
20-
};
21-
}
17+
type CoursesCell = CellValue<CorporateCourse>;
2218

2319
interface CoursesListProps {
2420
partnerId: string;

0 commit comments

Comments
 (0)