resolved key issue
This commit is contained in:
parent
6de97c107e
commit
9ae0ba509d
2
package-lock.json
generated
2
package-lock.json
generated
@ -10036,7 +10036,7 @@
|
|||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"version": "2.0.5",
|
"version": "2.0.5",
|
||||||
"resolved": "https://npm.mlabs.pl:443/prettier/-/prettier-2.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.5.tgz",
|
||||||
"integrity": "sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==",
|
"integrity": "sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { MouseEvent, useState } from 'react';
|
import React, { Fragment, MouseEvent, useState } from 'react';
|
||||||
import { GroupType, SchedulerEvent } from '../types';
|
import { GroupType, SchedulerEvent } from '../types';
|
||||||
import styled from 'styled-components/macro';
|
import styled from 'styled-components/macro';
|
||||||
import Popover from '@material-ui/core/Popover';
|
import Popover from '@material-ui/core/Popover';
|
||||||
@ -104,7 +104,7 @@ export const SchedulerRow = ({ groups, indexRow, rowTop, cellWidth, cellHeight }
|
|||||||
{groups.map(
|
{groups.map(
|
||||||
(group, index) =>
|
(group, index) =>
|
||||||
group.day === eventIndex && (
|
group.day === eventIndex && (
|
||||||
<>
|
<Fragment key={index}>
|
||||||
<StyledSchedulerEvent
|
<StyledSchedulerEvent
|
||||||
groupType={group.type}
|
groupType={group.type}
|
||||||
cellWidth={cellWidth}
|
cellWidth={cellWidth}
|
||||||
@ -148,7 +148,7 @@ export const SchedulerRow = ({ groups, indexRow, rowTop, cellWidth, cellHeight }
|
|||||||
<p>{groups[index].room}</p>
|
<p>{groups[index].room}</p>
|
||||||
</StyledTypography>
|
</StyledTypography>
|
||||||
</Popover>
|
</Popover>
|
||||||
</>
|
</Fragment>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
</SchedulerEventsWrapper>
|
</SchedulerEventsWrapper>
|
||||||
|
@ -135,13 +135,15 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
|
|||||||
console.log('courses: ', courses);
|
console.log('courses: ', courses);
|
||||||
setCourses(sortedCourses);
|
setCourses(sortedCourses);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchCourses();
|
setTimeout(() => {
|
||||||
getNewestTimetable();
|
fetchCourses();
|
||||||
|
getNewestTimetable();
|
||||||
|
}, 200);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user