improvement: loading state added to buttons who interact with backend.
This commit is contained in:
@@ -148,7 +148,7 @@ function AcceptInviteContent() {
|
||||
onChange={(e) => setConfirmPassword(e.target.value)}
|
||||
passwordToggleLabels={passwordToggleLabels}
|
||||
/>
|
||||
<Button type="button" fullWidth isLoading={submitting} onClick={() => void onAccept()}>
|
||||
<Button type="button" fullWidth isLoading={submitting} onClick={() => onAccept()}>
|
||||
{t('activateAccount')}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -244,7 +244,7 @@ function AcceptOrganizationInviteContent() {
|
||||
icon={<Lock className="h-5 w-5 icon-flat" />}
|
||||
passwordToggleLabels={passwordToggleLabels}
|
||||
/>
|
||||
<Button type="button" variant="primary" onClick={() => void handleNext()} fullWidth>
|
||||
<Button type="button" variant="primary" onClick={() => handleNext()} fullWidth>
|
||||
{tCommon('continue')}
|
||||
</Button>
|
||||
</>
|
||||
|
||||
@@ -182,7 +182,7 @@ export default function ForgotPasswordPage() {
|
||||
variant="primary"
|
||||
isLoading={isSending}
|
||||
fullWidth
|
||||
onClick={() => void onSendCode()}
|
||||
onClick={() => onSendCode()}
|
||||
>
|
||||
{t('sendCode')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user