Simplified import starting with React. Added name property to group object passed to table. changed group interface shape.

;

;

l
;
d
This commit is contained in:
Maciek Głowacki
2020-09-18 23:00:11 +02:00
parent e90ffbe04d
commit 0ae374a0fb
5 changed files with 22 additions and 15 deletions

View File

@ -1,4 +1,4 @@
import React, { useState, createContext, useEffect } from 'react';
import React, { useState, createContext, useEffect, ReactNode } from 'react';
import { Course, Group, Basket, GroupType } from '../types';
import axios from 'axios';
@ -11,7 +11,7 @@ interface CourseContext {
export const coursesContext = createContext<CourseContext | null>(null);
interface CoursesProviderProps {
children: React.ReactNode;
children: ReactNode;
}
export const CoursesProvider = ({ children }: CoursesProviderProps) => {