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 <noreply@anthropic.com>
This commit is contained in:
2026-06-02 18:43:02 -04:00
parent dedbd54199
commit a552e49ece
2 changed files with 4 additions and 2 deletions
@@ -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 (
<Box
+3 -1
View File
@@ -151,7 +151,9 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
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));