From da33aac156b56dd732b1a47439d77f844ac722e0 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 15 Jul 2024 19:00:49 -0400 Subject: [PATCH] extensions_ui: Remove commented-out code (#14525) This PR removes some commented-out code from the `extensions_ui`. Release Notes: - N/A --- crates/extensions_ui/src/extensions_ui.rs | 32 +++++++++-------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/crates/extensions_ui/src/extensions_ui.rs b/crates/extensions_ui/src/extensions_ui.rs index d77dc9e11a..50e06d0ad8 100644 --- a/crates/extensions_ui/src/extensions_ui.rs +++ b/crates/extensions_ui/src/extensions_ui.rs @@ -762,25 +762,19 @@ impl ExtensionsPage { cx.theme().colors().border }; - h_flex() - .w_full() - .gap_2() - .key_context(key_context) - // .capture_action(cx.listener(Self::tab)) - // .on_action(cx.listener(Self::dismiss)) - .child( - h_flex() - .flex_1() - .px_2() - .py_1() - .gap_2() - .border_1() - .border_color(editor_border) - .min_w(rems_from_px(384.)) - .rounded_lg() - .child(Icon::new(IconName::MagnifyingGlass)) - .child(self.render_text_input(&self.query_editor, cx)), - ) + h_flex().w_full().gap_2().key_context(key_context).child( + h_flex() + .flex_1() + .px_2() + .py_1() + .gap_2() + .border_1() + .border_color(editor_border) + .min_w(rems_from_px(384.)) + .rounded_lg() + .child(Icon::new(IconName::MagnifyingGlass)) + .child(self.render_text_input(&self.query_editor, cx)), + ) } fn render_text_input(&self, editor: &View, cx: &ViewContext) -> impl IntoElement {