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
Assessments Tab: loading states #23336
Conversation
<div> | ||
<div style={{...h3Style, ...styles.header}}> | ||
{i18n.selectAssessment()} | ||
{!isLoading && |
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.
Why not combine these into 1 !isLoading
block?
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.
It does look a little strange because they seem right next to each other. Styling requires the selectors to be together in one div, which means a single selector and the tables can't actually be in one element :( I think it'll be more obvious once we add more controls to the selector area.
{i18n.selectAssessment()} | ||
{!isLoading && | ||
<div> | ||
{/* Assessments */} |
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.
Whoa! I didn't know you could include comments like that in the return of a render!
{/* Assessments */} | ||
<MCAssessmentsOverviewContainer /> | ||
<StudentsMCSummaryContainer /> | ||
<MultipleChoiceByStudentContainer /> |
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.
Just because I'm curious: Why do some of the components have MultipleChoice
and some abbreviate to MC
?
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 might want to consider abbreviating all of them for consistency - but the MC
ones got abbreviated because the component names seemed very over the top length wise.
Summary
Gif