Description
Mobile users often want to share a transaction or account with someone nearby. A QR code share button generates a scannable code for the current result URL.
What To Build
src/components/common/QRShareButton.tsx
- Add
qrcode.react as a dependency
- Props:
url: string, label?: string
- Renders a 'Share QR' button
- Clicking opens a modal showing the QR code (256×256)
- Below QR: full URL in monospace + Copy URL button
- Modal: close button + backdrop click + Escape key to dismiss
- Mobile: bottom-sheet style. Desktop: centred modal
Add to:
- Transaction result — URL is the app page with the hash pre-filled
- Account result — URL is the app page with the address pre-filled
Key Files
src/components/common/QRShareButton.tsx
src/components/TransactionResult.tsx
src/components/AccountResult.tsx
package.json (add qrcode.react)
Acceptance Criteria
Complexity: Medium · 150 pts
Stage: S9 — Shareability (Wave 2)
Depends on: UI #6, UI #7
Description
Mobile users often want to share a transaction or account with someone nearby. A QR code share button generates a scannable code for the current result URL.
What To Build
src/components/common/QRShareButton.tsxqrcode.reactas a dependencyurl: string,label?: stringAdd to:
Key Files
src/components/common/QRShareButton.tsxsrc/components/TransactionResult.tsxsrc/components/AccountResult.tsxpackage.json(addqrcode.react)Acceptance Criteria
Complexity: Medium · 150 pts
Stage: S9 — Shareability (Wave 2)
Depends on: UI #6, UI #7