Skip to content

feat: Added the primary button feature#86

Open
denshaw-09 wants to merge 4 commits intoamitkumardemo:mainfrom
denshaw-09:feature/primary-button
Open

feat: Added the primary button feature#86
denshaw-09 wants to merge 4 commits intoamitkumardemo:mainfrom
denshaw-09:feature/primary-button

Conversation

@denshaw-09
Copy link

this issue resolved the problem for the primary button functionality across the different components and i tested the functionality across different devices as well
here is the summary:

What Changed?
Consistency: All primary action buttons now use the same styles and logic.
Maintainability: If you want to change the color, padding, or add a loading spinner, you only need to update PrimaryButton.jsx.
Cleaner Code: You no longer have to repeat button styles or logic in multiple places.

Please review the changes once and let me know for any changes.
closes issue #3

@vercel
Copy link

vercel bot commented Jun 27, 2025

@denshaw-09 is attempting to deploy a commit to the amitkumardemo's projects Team on Vercel.

A member of the Team first needs to authorize it.

@amitkumardemo amitkumardemo requested a review from Copilot June 27, 2025 18:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a centralized PrimaryButton component to improve the consistency of primary action buttons, while also adding theme detection code to the onboarding form.

  • Added PrimaryButton.jsx with unified styling and behavior for primary buttons.
  • Modified onboarding form to include theme detection using matchMedia.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
components/ui/PrimaryButton.jsx New reusable button component consolidating style and onClick logic for primary buttons.
app/(main)/onboarding/_components/onboarding-form.jsx Added a state and effect to detect the user's dark mode preference.

it's for adding a variation so i think we should remove it for now as it won't make much of the changes and we can add more features later for the buttons if required

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

@denshaw-09
Copy link
Author

why are the checks failing?
need any help with that?
@amitkumardemo

@amitkumardemo
Copy link
Owner

attach a video or photo of your work

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.

3 participants