improvement: loading state added to buttons who interact with backend.

This commit is contained in:
2026-07-17 10:58:04 +03:30
parent 68fc9d5d6d
commit d2ad1fd7b6
23 changed files with 240 additions and 144 deletions

View File

@@ -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>

View File

@@ -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>
</>

View File

@@ -182,7 +182,7 @@ export default function ForgotPasswordPage() {
variant="primary"
isLoading={isSending}
fullWidth
onClick={() => void onSendCode()}
onClick={() => onSendCode()}
>
{t('sendCode')}
</Button>