From e20e0a29b458f62f5609f92fa1531ed35bd47f34 Mon Sep 17 00:00:00 2001 From: Rudraprasad Das Date: Sun, 15 Dec 2024 06:39:20 +0800 Subject: [PATCH] chore: adding minor fixes --- .../src/git/components/DangerZone/DangerZoneView.tsx | 6 +++--- app/client/src/git/components/DangerZone/index.tsx | 4 +++- .../git/components/LocalProfile/LocalProfileView.tsx | 11 ++++------- app/client/src/git/hooks/useDisconnect.ts | 6 +++--- app/client/src/git/hooks/useGlobalProfile.ts | 9 +++++---- app/client/src/git/hooks/useLocalProfile.ts | 8 +++++--- app/client/src/git/hooks/useMetadata.ts | 2 +- .../src/git/store/selectors/gitConfigSelectors.ts | 3 +++ 8 files changed, 27 insertions(+), 22 deletions(-) diff --git a/app/client/src/git/components/DangerZone/DangerZoneView.tsx b/app/client/src/git/components/DangerZone/DangerZoneView.tsx index 19d564bcf39d..038afe54c10c 100644 --- a/app/client/src/git/components/DangerZone/DangerZoneView.tsx +++ b/app/client/src/git/components/DangerZone/DangerZoneView.tsx @@ -56,7 +56,7 @@ interface DangerZoneViewProps { isManageAutocommitPermitted: boolean; isToggleAutocommitLoading: boolean; isAutocommitEnabled: boolean; - isMetadataLoading: boolean; + isFetchMetadataLoading: boolean; openDisconnectModal: () => void; toggleAutocommit: () => void; toggleDisableAutocommitModal: (open: boolean) => void; @@ -69,8 +69,8 @@ interface DangerZoneViewProps { function DangerZoneView({ isAutocommitEnabled = false, isConnectPermitted = false, + isFetchMetadataLoading = false, isManageAutocommitPermitted = false, - isMetadataLoading = false, isToggleAutocommitLoading = false, openDisconnectModal = noop, toggleAutocommit = noop, @@ -122,7 +122,7 @@ function DangerZoneView({