-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalogtabs #572
Catalogtabs #572
Conversation
…tching data that does not exist
} | ||
|
||
// Handler function for updating GradesInfoCard on hover with single course | ||
function updateGraphHover(data:any) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets learn what these types are or atleast attempt to understand the shape of the data so we can get better type safety. There shouldn't be any any
types anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to leave this one as this came with the old Graphs component. I just copy pasted
if (tab == 0) { | ||
return ( | ||
<> | ||
<nav className={styles.tabContainer}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can refactor the code such that this nav
isn't being duplicated in the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not 100% how to do this
|
||
const gradePath = legacyId ? `/grades/0-${legacyId}-all-all` : `/grades`; | ||
|
||
const [hoveredClass, setHoveredClass] = useState<any>(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can work on the grades chart itself to handle this sort of hovering functionality. Not sure
}, [enrollContext]) | ||
|
||
useEffect(() => { | ||
if (course !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets prefer !course
and use &&
to condense the if statements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure how to do this either
If you install |
…catalogtabs dealing with merge conflicts
See #637. |
No description provided.