Fix naming

This commit is contained in:
Charles Morgan 2020-10-14 09:54:06 -04:00
parent c53b14acef
commit cdb881efaf
No known key found for this signature in database
GPG key ID: D71946CD723249BD

View file

@ -60,7 +60,7 @@ export default () => {
const terminal = useMemo(() => new Terminal({ ...terminalProps }), []);
const fitAddon = new FitAddon();
const searchAddon = new SearchAddon();
const searchAddonBar = new SearchBarAddon({ searchAddon });
const searchBarAddon = 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(searchAddonBar);
terminal.loadAddon(searchBarAddon);
fitAddon.fit();
// Add support for capturing keys