Skip to content

Commit

Permalink
Refactor PDF download button in OccupancyModal component
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym committed Sep 30, 2024
1 parent 6f50e9e commit 22cda97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/occupi-web/src/components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ export default function OccupancyModal({ user }: OccupancyModalProps) {
document={generateReportPDF()}
fileName={`${user.name}_Stats_Report.pdf`}
>
{({ loading }) =>
loading ? "Generating PDF..." : "Download PDF Report"
}
{({ blob, url, loading, error }) =>
loading ? "Report loading..." : "Report ready to download"
}
</PDFDownloadLink>
</Button>
) : (
Expand Down

0 comments on commit 22cda97

Please sign in to comment.