mirror of
https://github.com/pikami/scrummie-poker.git
synced 2026-04-18 04:18:48 +01:00
Added loaders
This commit is contained in:
@@ -50,9 +50,16 @@ const Profile = () => {
|
||||
);
|
||||
}}
|
||||
</updateUsernameForm.Field>
|
||||
<updateUsernameForm.Subscribe selector={(state) => [state.canSubmit]}>
|
||||
{([canSubmit]) => (
|
||||
<Button type="submit" disabled={!canSubmit} fullWidth>
|
||||
<updateUsernameForm.Subscribe
|
||||
selector={(state) => [state.canSubmit, state.isSubmitting]}
|
||||
>
|
||||
{([canSubmit, isSubmitting]) => (
|
||||
<Button
|
||||
type="submit"
|
||||
disabled={!canSubmit}
|
||||
isLoading={isSubmitting}
|
||||
fullWidth
|
||||
>
|
||||
Update
|
||||
</Button>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user