-
Notifications
You must be signed in to change notification settings - Fork 16
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
Block with statistics by students in categories #2626
Block with statistics by students in categories #2626
Conversation
Renatavl
commented
Oct 15, 2024
c2100cb
to
6a236ca
Compare
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.
src/components/students-in-categories/StudentsInCategoriesChart.tsx
Outdated
Show resolved
Hide resolved
] | ||
} | ||
|
||
const options = { |
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.
this probably also should be relocated to consts
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.
This object directly belongs to component properties, but not a hardcoded value which is used as input data for the component. That's why it is better to leave it at the same place as the component
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 still don't understand what is the difference between these hardcoded values and other hardcoded values that we store in separate files with constants
import { useTranslation } from 'react-i18next' | ||
import { selectedCategory, years } from './StudentsInCategories.constants' | ||
|
||
function StudentsInCatgories() { |
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.
here is a misspelling, it probably should be StudentsInCategories
boxSizing: 'border-box', | ||
mt: '75px' | ||
}, | ||
|
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.
please remove the blank lines between the styles
properties, as it is not the default style for our project
650038e
to
dbd4496
Compare
Quality Gate passedIssues Measures |