feat: Added loading animation in button while performing update mutation (#10622)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/10643/head^2
Raju kadel 2023-08-09 00:51:09 +05:45 committed by GitHub
parent 382cbe0a86
commit 4d9a7c1b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -225,7 +225,12 @@ const GeneralView = ({ localeProp, user }: GeneralViewProps) => {
)}
/>
</div>
<Button disabled={isDisabled} color="primary" type="submit" className="mt-8">
<Button
loading={mutation.isLoading}
disabled={isDisabled}
color="primary"
type="submit"
className="mt-8">
<>{t("update")}</>
</Button>
</Form>