Refactor Pdf417Barcode to accept payment params as props

Changes Pdf417Barcode component from using hardcoded payment data to
accepting paymentParams as a prop, making it reusable. Updates useEffect
dependency array to regenerate barcode when payment params change.

Also updates hub-3a-payment-encoder to v1.1.0 for PaymentParams type support.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Knee Cola
2025-11-22 14:47:25 +01:00
parent 38a1e9d1b8
commit 701b9b5d58
3 changed files with 10 additions and 27 deletions

View File

@@ -23,7 +23,7 @@
"bcrypt": "^5.1.1",
"clsx": "^2.0.0",
"daisyui": "^4.5.0",
"hub-3a-payment-encoder": "^1.0.0",
"hub-3a-payment-encoder": "^1.1.0",
"iban": "^0.0.14",
"is-ua-webview": "^1.1.2",
"mongodb": "^6.3.0",