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

@@ -95,7 +95,11 @@ export default function Page() {
</Paragraph>
)}
<MWButton type="purple" onPress={() => mutation.mutate()}>
<MWButton
type="purple"
onPress={() => mutation.mutate()}
isLoading={mutation.isPending}
>
Create account
</MWButton>
</MWCard.Footer>