From 468b77223b38da0fd91cfa34e5673315423140c3 Mon Sep 17 00:00:00 2001 From: Mia Wong Date: Thu, 22 Aug 2024 18:44:03 +0000 Subject: [PATCH] use same name --- web/src/Root.tsx | 4 ++-- web/src/components/apps/EmbeddedClusterManagement.tsx | 8 ++++---- web/src/components/shared/NavBar.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/web/src/Root.tsx b/web/src/Root.tsx index 681bb6430e..dd9f457b4e 100644 --- a/web/src/Root.tsx +++ b/web/src/Root.tsx @@ -501,7 +501,7 @@ const Root = () => { isEmbeddedClusterEnabled={Boolean( state.adminConsoleMetadata?.isEmbeddedCluster )} - isEmbeddedClusterNodeWaiting={ + isEmbeddedClusterWaitingForNodes={ state.isEmbeddedClusterWaitingForNodes } isGitOpsSupported={isGitOpsSupported()} @@ -640,7 +640,7 @@ const Root = () => { ) : ( diff --git a/web/src/components/apps/EmbeddedClusterManagement.tsx b/web/src/components/apps/EmbeddedClusterManagement.tsx index 2a40ab7c7f..0bea9ade00 100644 --- a/web/src/components/apps/EmbeddedClusterManagement.tsx +++ b/web/src/components/apps/EmbeddedClusterManagement.tsx @@ -31,10 +31,10 @@ type State = { const EmbeddedClusterManagement = ({ fromLicenseFlow = false, - isEmbeddedClusterNodeWaiting = false, + isEmbeddedClusterWaitingForNodes = false, }: { fromLicenseFlow?: boolean; - isEmbeddedClusterNodeWaiting?: boolean; + isEmbeddedClusterWaitingForNodes?: boolean; }) => { const [state, setState] = useReducer( (prevState: State, newState: Partial) => ({ @@ -530,7 +530,7 @@ const EmbeddedClusterManagement = ({
{" "} {!Utilities.isInitialAppInstall(app) || - (!isEmbeddedClusterNodeWaiting && ( + (!isEmbeddedClusterWaitingForNodes && ( <>

@@ -551,7 +551,7 @@ const EmbeddedClusterManagement = ({ ))}

{Utilities.isInitialAppInstall(app) || - (isEmbeddedClusterNodeWaiting && ( + (isEmbeddedClusterWaitingForNodes && (
diff --git a/web/src/components/shared/NavBar.tsx b/web/src/components/shared/NavBar.tsx index f65cae4776..aaa996d280 100644 --- a/web/src/components/shared/NavBar.tsx +++ b/web/src/components/shared/NavBar.tsx @@ -19,7 +19,7 @@ type Props = { isIdentityServiceSupported: boolean; isKurlEnabled: boolean; isEmbeddedClusterEnabled: boolean; - isEmbeddedClusterNodeWaiting: boolean; + isEmbeddedClusterWaitingForNodes: boolean; isSnapshotsSupported: boolean; logo: string | null; onLogoutError: (message: string) => void; @@ -145,7 +145,7 @@ export class NavBar extends PureComponent { fetchingMetadata, isKurlEnabled, isEmbeddedClusterEnabled, - isEmbeddedClusterNodeWaiting, + isEmbeddedClusterWaitingForNodes, isGitOpsSupported, isIdentityServiceSupported, appsList, @@ -209,7 +209,7 @@ export class NavBar extends PureComponent { {Utilities.isLoggedIn() && appsList?.length > 0 && !isInitialEmbeddedInstall && - !isEmbeddedClusterNodeWaiting && ( + !isEmbeddedClusterWaitingForNodes && (
{
)}
- {Utilities.isLoggedIn() && !isEmbeddedClusterNodeWaiting && ( + {Utilities.isLoggedIn() && !isEmbeddedClusterWaitingForNodes && ( <>