Skip to content

Conversation

cantinaverse
Copy link
Collaborator

PR Description

Summary

This PR introduces a new NewsletterSignup React component to the project. It sets up the structure, necessary imports, and state variables for handling user interactions.

Changes

  • Component Creation

    • Added components/NewsletterSignup.tsx.
  • Imports

    • Imported useState from React.
  • Component Props

    • benefits: array of strings highlighting membership perks.
    • incentive: string for sign-up incentive (defaults to free NFT).
  • State Variables

    • email: stores the user’s email input.
    • isSubmitted: tracks whether the form has been submitted.
    • isLoading: tracks the loading state during submission.

Motivation

This component establishes the foundation for a newsletter sign-up system. It ensures:

  • Proper state handling for email input.
  • Ability to extend with submission logic (API calls).
  • Clear communication of benefits and incentives to users.

Next Steps

  • Implement input field and submit button.
  • Add API integration for signup.
  • Provide user feedback (success/error messages).
  • Style the component for UI consistency.

@0xRiz0 0xRiz0 self-requested a review September 20, 2025 19:25
@0xRiz0 0xRiz0 added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 20, 2025
@0xRiz0 0xRiz0 merged commit ce2ec69 into master Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants