From 074d6674b88bb13f0f3af4ba01fbc297b0734391 Mon Sep 17 00:00:00 2001 From: Lionarius Date: Wed, 21 May 2025 18:03:22 +0300 Subject: [PATCH] . --- app/components/app-layout.tsx | 6 +++--- app/components/channel-area.tsx | 15 +++++++-------- app/components/chat-message.tsx | 2 +- app/components/custom-ui/channel-list-item.tsx | 2 +- app/components/custom-ui/settings-button.tsx | 8 +------- app/components/custom-ui/user-status.tsx | 13 +++++++------ .../gateway-websocket-connection-manager.tsx | 4 ++-- .../manager/webrtc-connection-manager.tsx | 2 +- .../modals/create-server-channel-modal.tsx | 4 ++-- .../modals/create-server-invite-modal.tsx | 2 +- app/components/modals/create-server-modal.tsx | 6 +++--- app/components/modals/update-profile-modal.tsx | 4 ++-- app/components/theme/theme-toggle.tsx | 4 ++-- app/hooks/use-fetch-user.ts | 2 +- app/lib/api/client/channel.ts | 2 +- app/lib/api/types.ts | 2 +- app/lib/utils.ts | 4 ++-- app/lib/websocket/gateway/client.ts | 5 ++++- app/lib/websocket/gateway/types.ts | 18 +++++++++++++----- app/lib/websocket/voice/client.ts | 4 ++-- app/routes/app/invite.tsx | 2 +- app/routes/app/me/channel.tsx | 17 +++++++++++++---- app/routes/app/server/layout.tsx | 2 +- app/routes/app/settings.tsx | 2 +- app/routes/auth/login.tsx | 6 +++--- app/routes/auth/register.tsx | 2 +- app/routes/index.tsx | 3 +-- app/stores/channels-voice-state.tsx | 2 +- app/stores/gateway-store.ts | 5 +++-- app/stores/server-channels-store.ts | 2 +- app/stores/token-store.ts | 2 +- app/stores/users-store.tsx | 6 +++--- app/stores/webrtc-store.ts | 2 +- eslint.config.js | 16 +++++++++++----- 34 files changed, 99 insertions(+), 79 deletions(-) diff --git a/app/components/app-layout.tsx b/app/components/app-layout.tsx index be2b998..066b057 100644 --- a/app/components/app-layout.tsx +++ b/app/components/app-layout.tsx @@ -14,11 +14,11 @@ interface AppLayoutProps { } export default function AppLayout({ children }: AppLayoutProps) { - let servers = Object.values(useServerListStore(useShallow((state) => state.servers))); + const servers = Object.values(useServerListStore(useShallow((state) => state.servers))); const matches = useMatches(); - let list = React.useMemo(() => { + const list = React.useMemo(() => { return matches .map( (match) => @@ -46,7 +46,7 @@ export default function AppLayout({ children }: AppLayoutProps) {