feat(accessibility): Add option to disable loading phrases (#745)

This commit is contained in:
N. Taylor Mullen 2025-06-04 00:46:57 -07:00 committed by GitHub
parent d179b3aae4
commit afc30e314f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 31 additions and 3 deletions

View file

@ -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
? ''