From 90443645b2847ee766552b4bdd9eb1a163c6ec79 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 20 Mar 2026 11:11:28 +0800 Subject: [PATCH] tweaks --- web/app/(commonLayout)/layout.tsx | 3 --- web/app/components/splash.tsx | 13 ------------- 2 files changed, 16 deletions(-) delete mode 100644 web/app/components/splash.tsx diff --git a/web/app/(commonLayout)/layout.tsx b/web/app/(commonLayout)/layout.tsx index 5ac39f1e39..db8644667c 100644 --- a/web/app/(commonLayout)/layout.tsx +++ b/web/app/(commonLayout)/layout.tsx @@ -1,5 +1,4 @@ import type { ReactNode } from 'react' -import * as React from 'react' import { AppInitializer } from '@/app/components/app-initializer' import InSiteMessageNotification from '@/app/components/app/in-site-message/notification' import AmplitudeProvider from '@/app/components/base/amplitude' @@ -14,7 +13,6 @@ import { EventEmitterContextProvider } from '@/context/event-emitter-provider' import { ModalContextProvider } from '@/context/modal-context-provider' import { ProviderContextProvider } from '@/context/provider-context-provider' import PartnerStack from '../components/billing/partner-stack' -import Splash from '../components/splash' import RoleRouteGuard from './role-route-guard' const Layout = ({ children }: { children: ReactNode }) => { @@ -37,7 +35,6 @@ const Layout = ({ children }: { children: ReactNode }) => { - diff --git a/web/app/components/splash.tsx b/web/app/components/splash.tsx deleted file mode 100644 index 94bd63805c..0000000000 --- a/web/app/components/splash.tsx +++ /dev/null @@ -1,13 +0,0 @@ -'use client' -import type { FC, PropsWithChildren } from 'react' -import * as React from 'react' -import { useIsLogin } from '@/service/use-common' - -const Splash: FC = () => { - // would auto redirect to signin page if not logged in - const { isLoading, data: loginData } = useIsLogin() - const isLoggedIn = loginData?.logged_in - - return null -} -export default React.memo(Splash)