summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/LoadingIndicator.tsx
diff options
context:
space:
mode:
authorN. Taylor Mullen <[email protected]>2025-06-04 00:46:57 -0700
committerGitHub <[email protected]>2025-06-04 07:46:57 +0000
commitafc30e314f29e00e462b0f2b11ea63fda31c3c3e (patch)
treef15fbc94bdfc065195f031e925d61a28479ec117 /packages/cli/src/ui/components/LoadingIndicator.tsx
parentd179b3aae41b466a5e75ac4392d5a5ad88ffffb0 (diff)
feat(accessibility): Add option to disable loading phrases (#745)
Diffstat (limited to 'packages/cli/src/ui/components/LoadingIndicator.tsx')
-rw-r--r--packages/cli/src/ui/components/LoadingIndicator.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/cli/src/ui/components/LoadingIndicator.tsx b/packages/cli/src/ui/components/LoadingIndicator.tsx
index 64059d53..6ff4dac8 100644
--- a/packages/cli/src/ui/components/LoadingIndicator.tsx
+++ b/packages/cli/src/ui/components/LoadingIndicator.tsx
@@ -12,7 +12,7 @@ import { StreamingState } from '../types.js';
import { GeminiRespondingSpinner } from './GeminiRespondingSpinner.js';
interface LoadingIndicatorProps {
- currentLoadingPhrase: string;
+ currentLoadingPhrase?: string;
elapsedTime: number;
rightContent?: React.ReactNode;
}
@@ -37,7 +37,9 @@ export const LoadingIndicator: React.FC<LoadingIndicatorProps> = ({
}
/>
</Box>
- <Text color={Colors.AccentPurple}>{currentLoadingPhrase}</Text>
+ {currentLoadingPhrase && (
+ <Text color={Colors.AccentPurple}>{currentLoadingPhrase}</Text>
+ )}
<Text color={Colors.SubtleComment}>
{streamingState === StreamingState.WaitingForConfirmation
? ''