Skip to content

Commit

Permalink
fix(extension): #37: add text for the loader
Browse files Browse the repository at this point in the history
  • Loading branch information
VanishMax committed Jun 24, 2024
1 parent 6653286 commit 967c2f2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ export const GrpcEndpointForm = ({
</div>

<Button variant='gradient' type='submit' disabled={!isSubmitButtonEnabled}>
{isValidationLoading ? <Loader2 className='size-4 animate-spin' /> : submitButtonLabel}
{isValidationLoading ? (
<>
<Loader2 className='mr-2 size-4 animate-spin' />
Validating RPC
</>
) : (
submitButtonLabel
)}
</Button>
</form>

Expand Down

0 comments on commit 967c2f2

Please sign in to comment.