diff options
| author | Jacob Richman <[email protected]> | 2025-05-20 16:50:32 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-20 16:50:32 -0700 |
| commit | 02ab0c234cc8c430bfb1c24f810cd410133a3297 (patch) | |
| tree | fa0afcd718b5029f870914fbe096dfd289fbb585 /packages/cli/src/ui/components/ThemeDialog.tsx | |
| parent | 937f4736513fd25d4aa1ad8d368c736b00a16b6f (diff) | |
Merge InputPrompt and multiline-editor and move autocomplete logic directly into InputPrompt (#453)
Diffstat (limited to 'packages/cli/src/ui/components/ThemeDialog.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/ThemeDialog.tsx | 5 |
1 files changed, 0 insertions, 5 deletions
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>( 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); } }); |
