Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dashboard): add button loading state prop #7191

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

scopsy
Copy link
Contributor

@scopsy scopsy commented Dec 2, 2024

What changed? Why was the change needed?

  • Add a new Button prop: isLoading
  • updated all app states to use it vs existing disabled state

Screenshots

CleanShot.2024-12-02.at.18.21.33.mp4
Expand for optional sections

Related enterprise PR

Special notes for your reviewer

>
<span
className={cn(
'flex items-center gap-1 transition-all duration-300',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to keep the text, but hide using opacity to preserve button width

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 504f999
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/674de657e13a810008057983
😎 Deploy Preview https://deploy-preview-7191.dashboard.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit 504f999
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/674de6576ed6f6000838b988
😎 Deploy Preview https://deploy-preview-7191.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 504f999
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/674de657e81ef500081a1fc9
😎 Deploy Preview https://deploy-preview-7191--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@scopsy scopsy requested a review from desiprisg December 2, 2024 17:47
>
<span
className={cn(
'flex items-center gap-1 transition-all duration-300',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@scopsy scopsy merged commit a4115c8 into next Dec 2, 2024
39 checks passed
@scopsy scopsy deleted the feat-add-button-loading-state branch December 2, 2024 21:13
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.

2 participants