From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/signin/_header.tsx |   42 +++++++++++++-----------------------------
 1 files changed, 13 insertions(+), 29 deletions(-)

diff --git a/app/signin/_header.tsx b/app/signin/_header.tsx
index 5e85a8d..a9479a3 100644
--- a/app/signin/_header.tsx
+++ b/app/signin/_header.tsx
@@ -2,41 +2,25 @@
 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 { 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: () => <div className='h-7 w-16 bg-transparent' />,
-})
-const ThemeSelector = dynamic(() => import('@/app/components/base/theme-selector'), {
-  ssr: false,
-  loading: () => <div className='size-8 bg-transparent' />,
-})
+import LogoSite from '@/app/components/base/logo/logo-site'
 
 const Header = () => {
   const { locale, setLocaleOnClient } = useContext(I18n)
 
-  return (
-    <div className='flex w-full items-center justify-between p-6'>
-      <DifyLogo size='large' />
-      <div className='flex items-center gap-1'>
-        <Select
-          value={locale}
-          items={languages.filter(item => item.supported)}
-          onChange={(value) => {
-            setLocaleOnClient(value as Locale)
-          }}
-        />
-        <Divider type='vertical' className='mx-0 ml-2 h-4' />
-        <ThemeSelector />
-      </div>
-    </div>
-  )
+  return <div className='flex items-center justify-between p-6 w-full'>
+    <LogoSite />
+    <Select
+      value={locale}
+      items={languages.filter(item => item.supported)}
+      onChange={(value) => {
+        setLocaleOnClient(value as Locale)
+      }}
+    />
+
+  </div>
 }
 
 export default Header

--
Gitblit v1.8.0