mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-03-28 17:43:05 +01:00
Whoops, linting
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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) ? (
|
||||
<span className="text-amber-400">★</span>
|
||||
) : (
|
||||
<span className="text-muted-foreground">☆</span>
|
||||
|
||||
Reference in New Issue
Block a user