From d4a7b37fa9d6c1e1a3e31dde0ce72fa4de3de9ff Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Mon, 16 Feb 2026 17:49:27 -0800 Subject: [PATCH] Whoops, linting --- frontend/src/App.tsx | 32 ++++++++++++++++++-------- frontend/src/components/ChatHeader.tsx | 6 +---- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 5cb9811..de7c38b 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -50,14 +50,7 @@ import { Sheet, SheetContent, SheetHeader, SheetTitle } from './components/ui/sh import { Toaster, toast } from './components/ui/sonner'; import { getStateKey } from './utils/conversationState'; import { cn } from '@/lib/utils'; -import type { - Contact, - Conversation, - HealthStatus, - Message, - MessagePath, - RawPacket, -} from './types'; +import type { Contact, Conversation, HealthStatus, Message, MessagePath, RawPacket } from './types'; const MAX_RAW_PACKETS = 500; @@ -320,7 +313,18 @@ export function App() { messageCache.updateAck(messageId, ackCount, paths); }, }), - [addMessageIfNew, trackNewMessage, incrementUnread, updateMessageAck, checkMention, prevHealthRef, setHealth, setConfig, activeConversationRef, setContacts] + [ + addMessageIfNew, + trackNewMessage, + incrementUnread, + updateMessageAck, + checkMention, + prevHealthRef, + setHealth, + setConfig, + activeConversationRef, + setContacts, + ] ); // Connect to WebSocket @@ -343,7 +347,15 @@ export function App() { console.error(err); setContactsLoaded(true); }); - }, [fetchConfig, fetchAppSettings, fetchUndecryptedCount, fetchAllContacts, setChannels, setContacts, setContactsLoaded]); + }, [ + fetchConfig, + fetchAppSettings, + fetchUndecryptedCount, + fetchAllContacts, + setChannels, + setContacts, + setContactsLoaded, + ]); // Send message handler const handleSendMessage = useCallback( diff --git a/frontend/src/components/ChatHeader.tsx b/frontend/src/components/ChatHeader.tsx index c26ce87..70bcde5 100644 --- a/frontend/src/components/ChatHeader.tsx +++ b/frontend/src/components/ChatHeader.tsx @@ -129,11 +129,7 @@ export function ChatHeader({ : 'Add to favorites' } > - {isFavorite( - favorites, - conversation.type as 'channel' | 'contact', - conversation.id - ) ? ( + {isFavorite(favorites, conversation.type as 'channel' | 'contact', conversation.id) ? ( ) : (