Minor improvements on labels
This commit is contained in:
@@ -203,10 +203,10 @@ const GroupTestReport = ({
|
||||
]}
|
||||
key={label}
|
||||
>
|
||||
<Text style={[customStyles.tableCell, { maxWidth: "48px" }]}>
|
||||
<Text style={customStyles.tableCell}>
|
||||
{label}
|
||||
</Text>
|
||||
<View style={customStyles.tableCell}>
|
||||
<View style={[customStyles.tableCell, { flex: 2}]}>
|
||||
<ProgressBar
|
||||
width={200}
|
||||
height={18}
|
||||
@@ -228,17 +228,6 @@ const GroupTestReport = ({
|
||||
</View>
|
||||
</View>
|
||||
<View style={[{ paddingBottom: 30 }, styles.separator]}></View>
|
||||
{false && (
|
||||
<View>
|
||||
<ProgressBar
|
||||
width={200}
|
||||
height={18}
|
||||
backgroundColor="#cc5b55"
|
||||
progressColor="#fab7b0"
|
||||
percentage={60}
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
<View style={{ flexGrow: 1 }}></View>
|
||||
<TestReportFooter />
|
||||
</Page>
|
||||
|
||||
@@ -327,9 +327,10 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
|
||||
[]
|
||||
) as GroupScoreSummaryHelper[];
|
||||
|
||||
const result = resultHelper.map(({ label, sessions }) => {
|
||||
const result = resultHelper.map(({ score, label, sessions }) => {
|
||||
const finalLabel = showLevel ? getLevelScore(score[0])[1] : label;
|
||||
return {
|
||||
label,
|
||||
label: finalLabel,
|
||||
percent: Math.floor((sessions.length / numberOfStudents) * 100),
|
||||
description: `No. Candidates ${sessions.length} of ${numberOfStudents}`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user