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