-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Tick import error #969
Tick import error #969
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…component and references in apps #913
@vnugent I've been testing this and I believe it is pretty much feature complete. The only reason I have been holding it in draft is to try to get better test coverage, but I am still struggling with mocking some of these loading states and toast messages. That can probably be improved down the road though. |
<button | ||
type='button' | ||
onClick={getTicks} | ||
className='btn btn-primary' | ||
> | ||
{loading ? <Spinner /> : 'Get my ticks!'} | ||
</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd disable the button if loading is in progress
<button
disabled={loading}
...
Got the button disabled while loading, Other than that, I think we want to cancel the request if the user clicks cancel. Working on that now |
fixes #913
name: Pull request
about: Create a pull request
title: ''
labels: ''
assignees: ''
What type of PR is this?(check all applicable)
Description
Related Issues
Issue #913
What this PR achieves
react-toastify
for improved error notifications.headlessui
modal forLeanAlert
for UI consistency.Screenshots, recordings
error messages and the new import mountain project modal
Notes
I removed some unused
isButton
logic that doesn't seem to be used anywhere anymore. This really simplified the component.