fix: prefer-arrow-callback ESLint rule and Prettier formatting
CI / Build & Quality Checks (push) Failing after 5m42s

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 6107da517f
commit 0b44c74ab8
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));