commit
9a35a98983
@ -1,33 +1,45 @@
|
|||||||
import i18n from './i18n.jsx';
|
import i18n from './i18n.jsx';
|
||||||
|
|
||||||
const colors = [
|
const colors = [
|
||||||
'#6f0214',
|
|
||||||
'#b20616',
|
|
||||||
'#ff5d00',
|
|
||||||
'#ffb200',
|
|
||||||
'#6bca24',
|
|
||||||
'#019812',
|
|
||||||
'#015411',
|
'#015411',
|
||||||
|
'#019812',
|
||||||
|
'#6bca24',
|
||||||
|
'#ffb200',
|
||||||
|
'#ff5d00',
|
||||||
|
'#b20616',
|
||||||
|
'#6f0214',
|
||||||
];
|
];
|
||||||
|
|
||||||
const gradeNames = [
|
const gradeNames = [
|
||||||
'To reject',
|
|
||||||
'Insufficient',
|
|
||||||
'Passable',
|
|
||||||
'Fair',
|
|
||||||
'Good',
|
|
||||||
'Very good',
|
|
||||||
'Excellent',
|
'Excellent',
|
||||||
|
'Very good',
|
||||||
|
'Good',
|
||||||
|
'Fair',
|
||||||
|
'Passable',
|
||||||
|
'Insufficient',
|
||||||
|
'To reject',
|
||||||
|
];
|
||||||
|
|
||||||
|
const gradeValues = [
|
||||||
|
6,
|
||||||
|
5,
|
||||||
|
4,
|
||||||
|
3,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
0
|
||||||
];
|
];
|
||||||
|
|
||||||
export const grades = gradeNames.map((name, i) => ({
|
export const grades = gradeNames.map((name, i) => ({
|
||||||
label: name,
|
label: name,
|
||||||
color: colors[i],
|
color: colors[i],
|
||||||
|
value: gradeValues[i]
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const i18nGrades = () => {
|
export const i18nGrades = () => {
|
||||||
return gradeNames.map((name, i) => ({
|
return gradeNames.map((name, i) => ({
|
||||||
label: i18n.t(name),
|
label: i18n.t(name),
|
||||||
color: colors[i],
|
color: colors[i],
|
||||||
|
value: gradeValues[i]
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in new issue