Skip to content

Commit c08e75b

Browse files
committed
🤖 Fix formatting
Change-Id: I481725545ba677ab3a9b72ab1fa445808c2d0e3a Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 4de790d commit c08e75b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/components/ChatInput.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ export const ChatInput: React.FC<ChatInputProps> = ({
432432
setTimeout(() => inputRef.current?.focus(), 0);
433433
};
434434
window.addEventListener(CUSTOM_EVENTS.INSERT_TO_CHAT_INPUT, handler as EventListener);
435-
return () => window.removeEventListener(CUSTOM_EVENTS.INSERT_TO_CHAT_INPUT, handler as EventListener);
435+
return () =>
436+
window.removeEventListener(CUSTOM_EVENTS.INSERT_TO_CHAT_INPUT, handler as EventListener);
436437
}, [setInput]);
437438

438439
// Allow external components to open the Model Selector
@@ -442,7 +443,8 @@ export const ChatInput: React.FC<ChatInputProps> = ({
442443
modelSelectorRef.current?.open();
443444
};
444445
window.addEventListener(CUSTOM_EVENTS.OPEN_MODEL_SELECTOR, handler as EventListener);
445-
return () => window.removeEventListener(CUSTOM_EVENTS.OPEN_MODEL_SELECTOR, handler as EventListener);
446+
return () =>
447+
window.removeEventListener(CUSTOM_EVENTS.OPEN_MODEL_SELECTOR, handler as EventListener);
446448
}, []);
447449

448450
// Show toast when thinking level is changed via command palette
@@ -469,7 +471,8 @@ export const ChatInput: React.FC<ChatInputProps> = ({
469471
};
470472

471473
window.addEventListener(CUSTOM_EVENTS.THINKING_LEVEL_TOAST, handler as EventListener);
472-
return () => window.removeEventListener(CUSTOM_EVENTS.THINKING_LEVEL_TOAST, handler as EventListener);
474+
return () =>
475+
window.removeEventListener(CUSTOM_EVENTS.THINKING_LEVEL_TOAST, handler as EventListener);
473476
}, [workspaceId, setToast]);
474477

475478
// Handle command selection

src/components/CommandPalette.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ export const CommandPalette: React.FC<CommandPaletteProps> = ({ getSlashContext
255255
shortcutHint: `${formatKeybind(KEYBINDS.SEND_MESSAGE)} to insert`,
256256
run: () => {
257257
const text = s.replacement;
258-
window.dispatchEvent(new CustomEvent(CUSTOM_EVENTS.INSERT_TO_CHAT_INPUT, { detail: { text } }));
258+
window.dispatchEvent(
259+
new CustomEvent(CUSTOM_EVENTS.INSERT_TO_CHAT_INPUT, { detail: { text } })
260+
);
259261
},
260262
})),
261263
},

0 commit comments

Comments
 (0)