From f57347b83450b00333293e4cf9ed1020cd168e76 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 6 Dec 2025 17:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B1=E4=BA=AB=E4=B8=8A=E4=B8=8B=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/MainSharedContext.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/ui/MainSharedContext.ts b/client/ui/MainSharedContext.ts index 6edbde0..843f237 100644 --- a/client/ui/MainSharedContext.ts +++ b/client/ui/MainSharedContext.ts @@ -1,5 +1,12 @@ import { createContext } from 'react' -const MainSharedContext = createContext({}) +type shared = { + ui_functions: React.MutableRefObject<{ + + }> + setShowLoginDialog: React.Dispatch> + setShowRegisterDialog: React.Dispatch> +} +const MainSharedContext = createContext({} as shared) export default MainSharedContext