add loading states to buttons

This commit is contained in:
Jorrin
2024-04-21 18:58:55 +02:00
parent b12562d249
commit e3d507db72
5 changed files with 42 additions and 8 deletions

View File

@@ -75,7 +75,12 @@ export function DeleteAccountAlert() {
asChild
onPress={() => deleteAccountMutation.mutate()}
>
<MWButton type="purple">I am sure</MWButton>
<MWButton
type="purple"
isLoading={deleteAccountMutation.isPending}
>
I am sure
</MWButton>
</AlertDialog.Action>
</XStack>
</YStack>