Remove unused method (#2721)

This commit is contained in:
Tommaso Sciortino
2025-06-30 15:53:05 -07:00
committed by GitHub
parent f19b9ed4f8
commit dbd626054f
4 changed files with 11 additions and 36 deletions

View File

@@ -13,15 +13,13 @@ import { AuthType } from '@google/gemini-cli-core';
import { validateAuthMethod } from '../../config/auth.js';
interface AuthDialogProps {
onSelect: (authMethod: string | undefined, scope: SettingScope) => void;
onHighlight: (authMethod: string | undefined) => void;
onSelect: (authMethod: AuthType | undefined, scope: SettingScope) => void;
settings: LoadedSettings;
initialErrorMessage?: string | null;
}
export function AuthDialog({
onSelect,
onHighlight,
settings,
initialErrorMessage,
}: AuthDialogProps): React.JSX.Element {
@@ -45,7 +43,7 @@ export function AuthDialog({
initialAuthIndex = 0;
}
const handleAuthSelect = (authMethod: string) => {
const handleAuthSelect = (authMethod: AuthType) => {
const error = validateAuthMethod(authMethod);
if (error) {
setErrorMessage(error);
@@ -81,7 +79,6 @@ export function AuthDialog({
items={items}
initialIndex={initialAuthIndex}
onSelect={handleAuthSelect}
onHighlight={onHighlight}
isFocused={true}
/>
{errorMessage && (