fix: loading animation of update buttons (#13131)
* fixed loading animation of update buttons * Update BookerLayoutSelector.tsx * fix: update button animation in settings appearance page * Update appearance.tsx * Update appearance.tsx --------- Co-authored-by: Joe Au-Yeung <[email protected]> Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
2 files changed
+9
-2
No files matched your search
@@ -31,7 +31,7 @@ type BookerLayoutSelectorProps = {
|
||||
* to this boolean.
|
||||
*/
|
||||
isDark?: boolean;
|
||||
|
||||
isLoading?: boolean;
|
||||
isDisabled?: boolean;
|
||||
isOuterBorder?: boolean;
|
||||
};
|
||||
@@ -46,6 +46,7 @@ export const BookerLayoutSelector = ({
|
||||
isDark,
|
||||
isDisabled = false,
|
||||
isOuterBorder = false,
|
||||
isLoading = false,
|
||||
}: BookerLayoutSelectorProps) => {
|
||||
const { control, getValues } = useFormContext();
|
||||
const { t } = useLocale();
|
||||
@@ -79,7 +80,7 @@ export const BookerLayoutSelector = ({
|
||||
/>
|
||||
{!isOuterBorder && (
|
||||
<SectionBottomActions align="end">
|
||||
<Button type="submit" disabled={isDisabled} color="primary">
|
||||
<Button loading={isLoading} type="submit" disabled={isDisabled} color="primary">
|
||||
{t("update")}
|
||||
</Button>
|
||||
</SectionBottomActions>
|
||||
|
||||
Reference in new issue
Block a user