Skip to content

fix(web): resolve showRegModal TDZ in profile/page.tsx#382

Merged
K1NGD4VID merged 3 commits into
mainfrom
fix/profile-tdz-showregmodal
Jul 13, 2026
Merged

fix(web): resolve showRegModal TDZ in profile/page.tsx#382
K1NGD4VID merged 3 commits into
mainfrom
fix/profile-tdz-showregmodal

Conversation

@K1NGD4VID

Copy link
Copy Markdown
Contributor

Partial fix for #269 (TDZ portion). useFocusTrap(showRegModal, ...) on line 42 referenced showRegModal before its useState declaration on line 45. Reorders the hooks so state declares first. Was blocking next build on main.

🤖 Generated with Claude Code

K1NGD4VID and others added 3 commits July 13, 2026 08:07
Fixes TypeScript type error blocking `next build` on main. Same pattern as PR #379 for InvoiceForm.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The <path> element was receiving framer-motion props (initial/animate/transition), causing a TypeScript type error against SVGProps<SVGPathElement>. Switching to <motion.path> makes the props type-compatible. Fixes `next build` on main.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
useFocusTrap(showRegModal, ...) referenced showRegModal before its useState declaration. Moved the state hook above the useFocusTrap call to eliminate the temporal-dead-zone error blocking `next build`.

Partial fix for #269 (TDZ portion).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
trustrove Error Error Jul 13, 2026 7:17am

@K1NGD4VID K1NGD4VID merged commit 405d715 into main Jul 13, 2026
2 of 4 checks passed
@K1NGD4VID K1NGD4VID deleted the fix/profile-tdz-showregmodal branch July 13, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant