feat: Added loading animation in button while performing update mutation (#10622)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>pull/10643/head^2
parent
382cbe0a86
commit
4d9a7c1b69
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue