diff --git a/lib/pdf-brochure.tsx b/lib/pdf-brochure.tsx index e3c27c23..1b0130de 100644 --- a/lib/pdf-brochure.tsx +++ b/lib/pdf-brochure.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Document, Page, View, Text, StyleSheet, Font, Image } from '@react-pdf/renderer'; +import { Document, Page, View, Text, StyleSheet } from '@react-pdf/renderer'; import { ProductData, ProductDatasheetPage } from './pdf-datasheet'; const styles = StyleSheet.create({ diff --git a/lib/pdf-datasheet.tsx b/lib/pdf-datasheet.tsx index 015494dc..475cd17f 100644 --- a/lib/pdf-datasheet.tsx +++ b/lib/pdf-datasheet.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Document, Page, View, Text, Image, StyleSheet, Font } from '@react-pdf/renderer'; +import { Document, Page, View, Text, Image, StyleSheet } from '@react-pdf/renderer'; // Standard fonts like Helvetica are built-in to PDF and don't require registration // unless we want to use specific TTF files. Using built-in Helvetica for maximum stability. diff --git a/lib/pdf-page.tsx b/lib/pdf-page.tsx index 3d05e9c1..79c0e40b 100644 --- a/lib/pdf-page.tsx +++ b/lib/pdf-page.tsx @@ -1,5 +1,5 @@ -import { Document, Page, View, Text, StyleSheet, Font, Link, Image } from '@react-pdf/renderer'; -import path from 'path'; +/* eslint-disable react/prop-types */ +import { Document, Page, View, Text, StyleSheet, Link, Image } from '@react-pdf/renderer'; // Standard fonts like Helvetica are built-in to PDF and don't require registration // unless we want to use specific TTF files. Using built-in Helvetica for maximum stability. @@ -317,7 +317,7 @@ export const PDFPage: React.FC = ({ page, locale = 'de' }) => { day: 'numeric', }); - const logoPath = path.join(process.cwd(), 'public/logo.png'); + const logoPath = `${process.cwd()}/public/logo.png`; return ( diff --git a/package.json b/package.json index 9a85dcb6..79f307bd 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,7 @@ "prepare": "husky", "preinstall": "npx only-allow pnpm" }, - "version": "2.3.18-rc.2", + "version": "2.3.18-rc.3", "pnpm": { "onlyBuiltDependencies": [ "@parcel/watcher",