Skip to content

refactor: extract shared SignUpButton styled component - #249

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/signup-button-20260624
Open

andrerfneves wants to merge 1 commit into
mainfrom
maintenance/signup-button-20260624

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

CommunitySignUpButton (in community.js) and ProviderSignUpButton (in providers.js) were nearly identical styled components — same color, width, height, padding, border-radius, margin, line-height, background-color, box-shadow, and responsive tablet breakpoint. The provider version also had an isDisabled prop for disabled styling. This extracts them to utils.js as a shared SignUpButton component that includes optional isDisabled prop support.

When isDisabled is not passed (as in the community section), SignUpButton behaves identically to the original CommunitySignUpButton.

This follows the same cleanup pattern established in prior PRs:

Changes

File Change
utils.js Added shared SignUpButton styled component with optional isDisabled prop
components/community.js Import shared SignUpButton; removed local CommunitySignUpButton
components/providers.js Import shared SignUpButton; removed local ProviderSignUpButton

Test Plan

  • Build passes clean (npm run build)
  • No functional or visual changes

CommunitySignUpButton (community.js) and ProviderSignUpButton
(providers.js) were nearly identical styled components. This extracts
the common definition to utils.js as a shared SignUpButton component
with optional isDisabled prop support, following the same cleanup
pattern established for SectionBase, ImageWrapper, Card, and others.
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lightning-address Ready Ready Preview, Comment Jun 24, 2026 8:05pm

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