resolve warnings and type errors

This commit is contained in:
2026-03-19 21:31:07 +01:00
parent f8510c8db3
commit 75d88257c8
99 changed files with 11 additions and 12 deletions

6
src/components/server/ServerCreationPopup.tsx Normal file → Executable file
View File

@@ -78,15 +78,15 @@ export function ServerCreationPopup({
setEntries((prev) => [...prev, newEntry]);
}, []);
const scrollToBottom = () => {
const scrollToBottom = useCallback(() => {
if (consoleRef.current && !isMinimized && isConsoleVisible) {
consoleRef.current.scrollTop = consoleRef.current.scrollHeight;
}
};
}, [isMinimized, isConsoleVisible]);
useEffect(() => {
scrollToBottom();
}, [entries, isMinimized, isConsoleVisible]);
}, [entries, scrollToBottom]);
useEffect(() => {
if (serverId && isOpen) {