From 8f2e90d1e851b3bb9efb4f4d954b2379336deae0 Mon Sep 17 00:00:00 2001 From: Charles Morgan Date: Thu, 15 Oct 2020 16:41:11 -0400 Subject: [PATCH] Update Console.tsx --- resources/scripts/components/server/Console.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/scripts/components/server/Console.tsx b/resources/scripts/components/server/Console.tsx index 5b45e9e24..e3720ab69 100644 --- a/resources/scripts/components/server/Console.tsx +++ b/resources/scripts/components/server/Console.tsx @@ -60,7 +60,7 @@ export default () => { const terminal = useMemo(() => new Terminal({ ...terminalProps }), []); const fitAddon = new FitAddon(); const searchAddon = new SearchAddon(); - const SearchBar = new SearchBarAddon({ searchAddon }); + const searchBar = new SearchBarAddon({ searchAddon }); const { connected, instance } = ServerContext.useStoreState(state => state.socket); const [ canSendCommands ] = usePermissions([ 'control.console' ]); @@ -90,7 +90,7 @@ export default () => { terminal.open(ref.current); terminal.loadAddon(fitAddon); terminal.loadAddon(searchAddon); - terminal.loadAddon(SearchBar); + terminal.loadAddon(searchBar); fitAddon.fit(); // Add support for capturing keys @@ -102,12 +102,12 @@ export default () => { } if (e.ctrlKey && e.key === 'f') { - SearchBar.show(); + searchBar.show(); return false; } if (e.key === 'Escape') { - SearchBar.hidden(); + searchBar.hidden(); } return true; });