umwd-components 0.1.813 → 0.1.814

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,9 +96,9 @@ const InvoicePDF = () => {
96
96
  const styles = createStyles(StyleSheet);
97
97
  return (jsx(Document, { children: jsxs(Page, { size: "A4", style: styles.page, children: [jsx(View, { style: styles.header, children: jsx(Text, { style: styles.h2, children: "Invoice" }) }), jsx(View, { style: styles.section, children: jsx(Text, { children: "Invoice details go here..." }) })] }) }));
98
98
  };
99
- function InvoiceDownloadLink({ invoice }) {
99
+ function InvoiceDownloadLink() {
100
100
  const { pdfComponents, loading, error } = usePDFRenderer();
101
- if (loading || error || !pdfComponents || !invoice) {
101
+ if (loading || error || !pdfComponents) {
102
102
  return (jsx(IconButton, { disabled: true, children: jsx(CircularProgress, { size: 20 }) }));
103
103
  }
104
104
  const { PDFDownloadLink } = pdfComponents;