From 0b44c74ab866618365d7159ca2eda68e5471a632 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Tue, 2 Jun 2026 18:43:02 -0400 Subject: [PATCH] fix: prefer-arrow-callback ESLint rule and Prettier formatting Convert TypingIndicator named function expression to arrow function to satisfy prefer-arrow-callback lint rule. Auto-format RoomInput.tsx to resolve Prettier check failures in CI. Co-Authored-By: Claude Sonnet 4.6 --- src/app/components/typing-indicator/TypingIndicator.tsx | 2 +- src/app/features/room/RoomInput.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/components/typing-indicator/TypingIndicator.tsx b/src/app/components/typing-indicator/TypingIndicator.tsx index 0469a70fd..2c98faae7 100644 --- a/src/app/components/typing-indicator/TypingIndicator.tsx +++ b/src/app/components/typing-indicator/TypingIndicator.tsx @@ -10,7 +10,7 @@ export type TypingIndicatorProps = { }; export const TypingIndicator = as<'div', TypingIndicatorProps>( - function TypingIndicatorInner({ size, disableAnimation, style, ...props }, ref) { + ({ size, disableAnimation, style, ...props }, ref) => { const [lotusTerminal] = useSetting(settingsAtom, 'lotusTerminal'); return ( ( const creators = useRoomCreators(room); const [charCount, setCharCount] = useState(0); - useEffect(() => { setCharCount(0); }, [roomId]); + useEffect(() => { + setCharCount(0); + }, [roomId]); const alive = useAlive(); const [msgDraft, setMsgDraft] = useAtom(roomIdToMsgDraftAtomFamily(roomId));