Merge pull request 'increased delay' (#36) from Admin into master

Reviewed-on: http://git.plannaplan.pl/y0rune/frontend/pulls/36
Reviewed-by: wrzesinski-hubert <wrzesinski.hubert@gmail.com>
This commit is contained in:
wrzesinski-hubert 2020-12-14 17:24:09 +01:00
commit d65d98dfec
3 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export const App = () => {
const { isDataLoading } = useContext(coursesContext)!;
const [isOpenTransfer, setOpenTransfer] = useState(false);
const handleTransfer = () => {
const handleTransfer = () => {
setOpenTransfer(!isOpenTransfer);
};

View File

@ -213,7 +213,7 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
fetchCourses();
getNewestTimetable();
setIsDataLoading(false);
}, 500);
}, 600);
}, []);
return (

View File

@ -5,6 +5,7 @@ export const axiosInstance = axios.create();
axiosInstance.interceptors.request.use(
(config) => {
const token = localStorage.getItem('userToken');
config.headers['Content-Type'] = 'application/json';
config.headers['Authorization'] = token ? `Bearer ${token}` : '';
return config;