Merge pull request 'statistics' (#61) from statistics into master

Reviewed-on: http://git.plannaplan.pl/y0rune/frontend/pulls/61
Reviewed-by: Maciej <glowackimaciej97@gmail.com>
This commit is contained in:
Maciej 2021-01-23 23:07:44 +01:00
commit 954e0a751f
2 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
const courseToBasket: Basket = { const courseToBasket: Basket = {
name: course.name, name: course.name,
id: course.id, id: course.id,
symbol: course.symbol,
classes: course.classes !== undefined ? course.classes[0] : undefined, classes: course.classes !== undefined ? course.classes[0] : undefined,
lecture: course.lectures !== undefined ? course.lectures[0] : undefined, lecture: course.lectures !== undefined ? course.lectures[0] : undefined,
}; };

View File

@ -28,6 +28,7 @@ export interface Group {
export interface Course { export interface Course {
id: number; id: number;
name: string; name: string;
symbol:string;
lectures?: Array<Group>; lectures?: Array<Group>;
classes?: Array<Group>; classes?: Array<Group>;
} }