summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/AuthDialog.tsx
diff options
context:
space:
mode:
authorTommaso Sciortino <[email protected]>2025-06-30 15:53:05 -0700
committerGitHub <[email protected]>2025-06-30 22:53:05 +0000
commitdbd626054fe7e8a6b9514c0d1f52dc8beed1b701 (patch)
tree414e367c1b9dad6020642cc544da76802dc53d42 /packages/cli/src/ui/components/AuthDialog.tsx
parentf19b9ed4f8444ff766338b1a16f58a05522b3ce1 (diff)
Remove unused method (#2721)
Diffstat (limited to 'packages/cli/src/ui/components/AuthDialog.tsx')
-rw-r--r--packages/cli/src/ui/components/AuthDialog.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/cli/src/ui/components/AuthDialog.tsx b/packages/cli/src/ui/components/AuthDialog.tsx
index 2a29bbd3..78b825e6 100644
--- a/packages/cli/src/ui/components/AuthDialog.tsx
+++ b/packages/cli/src/ui/components/AuthDialog.tsx
@@ -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 && (