Skip to content

Commit

Permalink
Merge pull request #14 from ipti/new/registration
Browse files Browse the repository at this point in the history
porcetagem relatorio turma
  • Loading branch information
jonnypaulino authored May 27, 2024
2 parents c71395b + 7f053e0 commit 4cab852
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Pages/Classroom/ClassroomOne/Report/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { Tooltip } from "primereact/tooltip";
import { Container } from "../../../../Styles/styles";
import { DataTable } from "primereact/datatable";
import { Column } from "primereact/column";
import { Button } from "primereact/button";
import { Column } from "primereact/column";
import { DataTable } from "primereact/datatable";
import { useRef } from "react";
import { useParams } from "react-router-dom";
import Present from "../../../../Assets/images/status-approved.svg";
import NotPresent from "../../../../Assets/images/status-desapproved.svg";
import { useFetchRequestClassroomReport } from "../../../../Services/Classroom/query";
import { useParams } from "react-router-dom";
import { Container } from "../../../../Styles/styles";

import html2canvas from "html2canvas";
import jsPDF from "jspdf";
Expand Down Expand Up @@ -65,9 +64,9 @@ const ReportPage = () => {
}
}

return count / data.meeting.length * 100;
return data.meeting.length !== 0 ? ((data.meeting.length - count) / data.meeting.length) * 100 : 0;
};
return <h3>{verifyFouls()}%</h3>;
return <h3>{verifyFouls().toFixed(2)}%</h3>;
};

const header = (
Expand Down

0 comments on commit 4cab852

Please sign in to comment.