diff --git a/src/app/splash/components/splash-button.tsx b/src/app/splash/components/splash-button.tsx index fce5fe22..6f46414e 100644 --- a/src/app/splash/components/splash-button.tsx +++ b/src/app/splash/components/splash-button.tsx @@ -6,16 +6,15 @@ import { useAuthDispatch, useAuthState } from "@/stores/auth/auth-context"; import { LoadingIndicator } from "@/app/_components/core/loading-indicator"; import styles from "./splash-button.module.css"; -export function SplashButton() { +export interface SplashButtonProps { + onSkip: () => void; +} + +export function SplashButton({ onSkip }: SplashButtonProps) { const state = useAuthState(); const authDispatch = useAuthDispatch(); const isLoading = state.isLoading; - // Skip = 显式游客登录入口("以游客身份继续") - const handleSkip = () => { - authDispatch({ type: "AuthGuestLoginSubmitted" }); - }; - const handleFacebookLogin = () => { authDispatch({ type: "AuthFacebookLoginSubmitted", @@ -25,10 +24,10 @@ export function SplashButton() { return (
- {/* Skip 按钮 = 显式游客登录入口(派发 AuthGuestLoginSubmitted,不做路由跳转) */} + {/* Skip 按钮 = 显式游客登录入口(派发事件 + 立即跳 /chat) */}