Skip to content

Commit

Permalink
refactor: show only spinner on submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijithvijayan committed Jul 13, 2020
1 parent 582081b commit 4a89b4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Popup/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ const Form: React.FC = () => {
handleFormSubmit(formState.values);
}}
>
<span tw="ml-2">Create</span>

{isSubmitting && (
{!isSubmitting ? (
<span>Create</span>
) : (
<Icon className="icon create__icon" name="spinner" />
)}
</StyledValidateButton>
Expand Down

0 comments on commit 4a89b4a

Please sign in to comment.