Skip to content

Commit

Permalink
feat: disable button when loading #913
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonlunn committed Aug 27, 2023
1 parent 4dd3854 commit 53e6968
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/users/ImportFromMtnProj.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export function ImportFromMtnProj ({ username }: Props): JSX.Element {
type='button'
onClick={getTicks}
className='btn btn-primary'
disabled={loading}
>
{loading ? <Spinner /> : 'Get my ticks!'}
</button>
Expand Down

0 comments on commit 53e6968

Please sign in to comment.