From 02ab0c234cc8c430bfb1c24f810cd410133a3297 Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Tue, 20 May 2025 16:50:32 -0700 Subject: Merge InputPrompt and multiline-editor and move autocomplete logic directly into InputPrompt (#453) --- packages/cli/src/ui/components/ThemeDialog.tsx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'packages/cli/src/ui/components/ThemeDialog.tsx') diff --git a/packages/cli/src/ui/components/ThemeDialog.tsx b/packages/cli/src/ui/components/ThemeDialog.tsx index 7ab4e3b1..58bfeffa 100644 --- a/packages/cli/src/ui/components/ThemeDialog.tsx +++ b/packages/cli/src/ui/components/ThemeDialog.tsx @@ -21,15 +21,12 @@ interface ThemeDialogProps { onHighlight: (themeName: string | undefined) => void; /** The settings object */ settings: LoadedSettings; - /** Callback to set the query */ - setQuery: (query: string) => void; } export function ThemeDialog({ onSelect, onHighlight, settings, - setQuery, }: ThemeDialogProps): React.JSX.Element { const [selectedScope, setSelectedScope] = useState( SettingScope.User, @@ -59,7 +56,6 @@ export function ThemeDialog({ ]; const handleThemeSelect = (themeName: string) => { - setQuery(''); // Clear the query when user selects a theme onSelect(themeName, selectedScope); }; @@ -82,7 +78,6 @@ export function ThemeDialog({ setFocusedSection((prev) => (prev === 'theme' ? 'scope' : 'theme')); } if (key.escape) { - setQuery(''); // Clear the query when user hits escape onSelect(undefined, selectedScope); } }); -- cgit v1.2.3