Added missing % on percentage

Removed unnecessary prop
This commit is contained in:
Joao Ramos
2024-01-09 23:16:39 +00:00
parent cc0f9712d6
commit 744aa1e788
2 changed files with 2 additions and 13 deletions

View File

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

View File

@@ -356,7 +356,6 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
id={user.id} id={user.id}
gender={user.demographicInformation?.gender} gender={user.demographicInformation?.gender}
summary={performanceSummary} summary={performanceSummary}
testDetails={testDetails}
renderDetails={details} renderDetails={details}
logo={"public/logo_title.png"} logo={"public/logo_title.png"}
qrcode={qrcode} qrcode={qrcode}