summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/ThemeDialog.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/components/ThemeDialog.tsx')
-rw-r--r--packages/cli/src/ui/components/ThemeDialog.tsx5
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);
}
});