Skip to content

Extract shared card shells to eliminate fallback duplication#35

Merged
cfuehrmann merged 1 commit into
mainfrom
extract-card-shells
Feb 14, 2026
Merged

Extract shared card shells to eliminate fallback duplication#35
cfuehrmann merged 1 commit into
mainfrom
extract-card-shells

Conversation

@cfuehrmann

Copy link
Copy Markdown
Owner

Summary

  • Extract LoginCard and RegisterCard presentational components that are shared between the live form and the Suspense fallback
  • The fallback renders <LoginCard /> / <RegisterCard /> with no props (defaults to disabled state)
  • The live form passes state and handlers as props

This eliminates the duplicated JSX between each form and its fallback. Changes to the card layout now only need to be made in one place.

All checks pass: build, lint, format, knip, unit tests, 11/11 e2e tests.

@cfuehrmann cfuehrmann merged commit 56b5575 into main Feb 14, 2026
6 checks passed
@cfuehrmann cfuehrmann deleted the extract-card-shells branch February 14, 2026 17:23
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