fix(pdf): fix unused imports and prop-types linting, and remove TS node path error
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Successful in 1m24s
Build & Deploy / 🏗️ Build (push) Successful in 3m43s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 4m18s
Build & Deploy / 🚀 Deploy (push) Successful in 20s
Build & Deploy / 🔔 Notify (push) Successful in 2s
Nightly QA / 🔗 Links & Deps (push) Successful in 3m31s
Nightly QA / 🎭 Lighthouse (push) Successful in 4m7s
Nightly QA / ♿ Accessibility (push) Successful in 5m33s
Nightly QA / 🔍 Static Analysis (push) Successful in 7m9s
Nightly QA / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-04-20 22:59:21 +02:00
parent 666bcf0b9d
commit 5021259d22
4 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import * as React from 'react'; 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'; import { ProductData, ProductDatasheetPage } from './pdf-datasheet';
const styles = StyleSheet.create({ const styles = StyleSheet.create({

View File

@@ -1,5 +1,5 @@
import * as React from 'react'; 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 // 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. // unless we want to use specific TTF files. Using built-in Helvetica for maximum stability.

View File

@@ -1,5 +1,5 @@
import { Document, Page, View, Text, StyleSheet, Font, Link, Image } from '@react-pdf/renderer'; /* eslint-disable react/prop-types */
import path from 'path'; 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 // 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. // unless we want to use specific TTF files. Using built-in Helvetica for maximum stability.
@@ -317,7 +317,7 @@ export const PDFPage: React.FC<PDFPageProps> = ({ page, locale = 'de' }) => {
day: 'numeric', day: 'numeric',
}); });
const logoPath = path.join(process.cwd(), 'public/logo.png'); const logoPath = `${process.cwd()}/public/logo.png`;
return ( return (
<Document> <Document>

View File

@@ -139,7 +139,7 @@
"prepare": "husky", "prepare": "husky",
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm"
}, },
"version": "2.3.18-rc.2", "version": "2.3.18-rc.3",
"pnpm": { "pnpm": {
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
"@parcel/watcher", "@parcel/watcher",