chore: dark config

This commit is contained in:
jialin
2025-04-28 10:05:06 +08:00
parent d4d7148f16
commit ce9c31f368
35 changed files with 678 additions and 399 deletions
+5 -2
View File
@@ -1,6 +1,8 @@
import { userAtom } from '@/atoms/user';
import Footer from '@/components/footer';
import useUserSettings from '@/hooks/use-user-settings';
import { useModel } from '@umijs/max';
import { ConfigProvider } from 'antd';
import { useAtom } from 'jotai';
import { useEffect } from 'react';
import LoginForm from './components/login-form';
@@ -9,6 +11,7 @@ import styles from './components/styles.less';
import { checkDefaultPage } from './utils';
const Login = () => {
const { themeData } = useUserSettings();
const [userInfo, setUserInfo] = useAtom(userAtom);
const { initialState, setInitialState } = useModel('@@initialState') || {};
@@ -33,7 +36,7 @@ const Login = () => {
}, []);
return (
<>
<ConfigProvider componentSize="large" theme={themeData}>
<div className="login-wrapper"></div>
<div className={styles.box}>
<div className={styles['login-form-wrapper']}>
@@ -41,7 +44,7 @@ const Login = () => {
</div>
<Footer />
</div>
</>
</ConfigProvider>
);
};