diff --git a/web/app/(shareLayout)/webapp-reset-password/layout.tsx b/web/app/(shareLayout)/webapp-reset-password/layout.tsx index c7df9ecd27..e0ac6b9ad6 100644 --- a/web/app/(shareLayout)/webapp-reset-password/layout.tsx +++ b/web/app/(shareLayout)/webapp-reset-password/layout.tsx @@ -17,7 +17,7 @@ export default function SignInLayout({ children }: any) { 'md:px-[108px]', ) }> -
+
{children}
diff --git a/web/app/(shareLayout)/webapp-signin/LoginLogo.tsx b/web/app/(shareLayout)/webapp-signin/LoginLogo.tsx deleted file mode 100644 index 73dfb88205..0000000000 --- a/web/app/(shareLayout)/webapp-signin/LoginLogo.tsx +++ /dev/null @@ -1,30 +0,0 @@ -'use client' -import type { FC } from 'react' -import classNames from '@/utils/classnames' -import { useGlobalPublicStore } from '@/context/global-public-context' -import { useTheme } from 'next-themes' - -type LoginLogoProps = { - className?: string -} - -const LoginLogo: FC = ({ - className, -}) => { - const { systemFeatures } = useGlobalPublicStore() - const { theme } = useTheme() - - let src = theme === 'light' ? '/logo/logo-site.png' : `/logo/logo-site-${theme}.png` - if (systemFeatures.branding.enabled) - src = systemFeatures.branding.login_page_logo - - return ( - logo - ) -} - -export default LoginLogo diff --git a/web/app/(shareLayout)/webapp-signin/_header.tsx b/web/app/(shareLayout)/webapp-signin/_header.tsx deleted file mode 100644 index 5e85a8d306..0000000000 --- a/web/app/(shareLayout)/webapp-signin/_header.tsx +++ /dev/null @@ -1,42 +0,0 @@ -'use client' -import React from 'react' -import { useContext } from 'use-context-selector' -import Select from '@/app/components/base/select/locale' -import Divider from '@/app/components/base/divider' -import { languages } from '@/i18n/language' -import type { Locale } from '@/i18n' -import I18n from '@/context/i18n' -import dynamic from 'next/dynamic' - -// Avoid rendering the logo and theme selector on the server -const DifyLogo = dynamic(() => import('@/app/components/base/logo/dify-logo'), { - ssr: false, - loading: () =>
, -}) -const ThemeSelector = dynamic(() => import('@/app/components/base/theme-selector'), { - ssr: false, - loading: () =>
, -}) - -const Header = () => { - const { locale, setLocaleOnClient } = useContext(I18n) - - return ( -
- -
-