Added missing % on percentage
Removed unnecessary prop
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
} from "@react-pdf/renderer";
|
||||
import { styles } from "./styles";
|
||||
import TestReportFooter from "./test.report.footer";
|
||||
import { ModuleScore, StudentData } from "@/interfaces/module.scores";
|
||||
import { StudentData } from "@/interfaces/module.scores";
|
||||
import ProgressBar from "./progress.bar";
|
||||
Font.registerHyphenationCallback((word) => [word]);
|
||||
|
||||
@@ -21,7 +21,6 @@ interface Props {
|
||||
email: string;
|
||||
id: string;
|
||||
gender?: string;
|
||||
testDetails: ModuleScore[];
|
||||
summary: string;
|
||||
logo: string;
|
||||
qrcode: string;
|
||||
@@ -71,7 +70,6 @@ const GroupTestReport = ({
|
||||
email,
|
||||
id,
|
||||
gender,
|
||||
testDetails,
|
||||
summary,
|
||||
logo,
|
||||
qrcode,
|
||||
@@ -85,14 +83,6 @@ const GroupTestReport = ({
|
||||
groupScoreSummary,
|
||||
}: Props) => {
|
||||
const defaultTextStyle = [styles.textFont, { fontSize: 8 }];
|
||||
const defaultSkillsTextStyle = [styles.textFont, { fontSize: 8 }];
|
||||
const defaultSkillsTitleStyle = [
|
||||
styles.textFont,
|
||||
styles.textColor,
|
||||
styles.textBold,
|
||||
{ fontSize: 7 },
|
||||
];
|
||||
|
||||
return (
|
||||
<Document>
|
||||
<Page style={styles.body}>
|
||||
@@ -216,7 +206,7 @@ const GroupTestReport = ({
|
||||
/>
|
||||
</View>
|
||||
<Text style={[customStyles.tableCell, { maxWidth: "24px" }]}>
|
||||
{percent}
|
||||
{percent}%
|
||||
</Text>
|
||||
<Text style={customStyles.tableCell}>{description}</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user