-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issues/KUI 1196 show barchart labels #356
Issues/KUI 1196 show barchart labels #356
Conversation
Looks good to me! |
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.
Looks good to me! Good job 🚀
|
||
const seasonsStr = seasons.map(season => seasonLib.labelSeason(season, languageIndex)).join(', ') | ||
return ( | ||
<Row> | ||
<Col xs="4" style={{ flex: 'none', width: 'auto', paddingBottom: '20px' }}> | ||
<label>{translation.statisticsLabels.formLabels.formSubHeaders.year}</label> | ||
<label>{formSubHeaders.school}</label> | ||
{`: ${school === 'allSchools' ? statisticsLabels[school] : school}`} |
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 always have a hard time reading ternary operators inline like that. What do you think of extracting that part to something like getSchoolName
or something like that?
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 liked the idea and we made the required changes 🚀
…onal state using function
For this task me and @axelbjo added the name of each school below each bar in the charts.
After conversation with Joel: