From 28215fc1f80c85663d8ee835d6895ac410b449d6 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 13 Dec 2025 00:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20Shared=20Context=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/MainSharedContext.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/ui/MainSharedContext.ts b/client/ui/MainSharedContext.ts index ad4da5e..5e5c178 100644 --- a/client/ui/MainSharedContext.ts +++ b/client/ui/MainSharedContext.ts @@ -9,12 +9,15 @@ type Shared = { }> favouriteChats: Chat[] setFavouriteChats: React.Dispatch> + setShowLoginDialog: React.Dispatch> setShowRegisterDialog: React.Dispatch> setShowAddFavourtieChatDialog: React.Dispatch> - setCurrentSelectedChatId: React.Dispatch> - myProfileCache?: UserMySelf + currentSelectedChatId: string + setCurrentSelectedChatId: React.Dispatch> + + myProfileCache?: UserMySelf } const MainSharedContext = createContext({} as Shared)