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";
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>

View File

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