You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
491 B
34 lines
491 B
import i18n from './i18n.jsx';
|
|
|
|
const colors = [
|
|
'#6f0214',
|
|
'#b20616',
|
|
'#ff5d00',
|
|
'#ffb200',
|
|
'#6bca24',
|
|
'#019812',
|
|
'#015411',
|
|
];
|
|
|
|
const gradeNames = [
|
|
'To reject',
|
|
'Insufficient',
|
|
'Passable',
|
|
'Fair',
|
|
'Good',
|
|
'Very good',
|
|
'Excellent',
|
|
];
|
|
|
|
export const grades = gradeNames.map((name, i) => ({
|
|
label: name,
|
|
color: colors[i],
|
|
}));
|
|
|
|
export const i18nGrades = () => {
|
|
return gradeNames.map((name, i) => ({
|
|
label: i18n.t(name),
|
|
color: colors[i],
|
|
}));
|
|
};
|