diff --git a/src/components/switch/LangSwitches.tsx b/src/components/switch/LangSwitches.tsx index 8cda47d..75ba2bd 100644 --- a/src/components/switch/LangSwitches.tsx +++ b/src/components/switch/LangSwitches.tsx @@ -30,7 +30,11 @@ const LangSwitches = () => { checked={isEnglish} onChange={handleLanguageChange} /> -
+
); }; diff --git a/src/pages/Auth/index.tsx b/src/pages/Auth/index.tsx index 6ebcd38..7637d40 100644 --- a/src/pages/Auth/index.tsx +++ b/src/pages/Auth/index.tsx @@ -1,4 +1,5 @@ import Footer from '@/components/Footer/Footer'; +import LangSwitches from '@/components/switch/LangSwitches'; import { ROUTE_HOME } from '@/constants'; import { login } from '@/services/controller/AuthController'; import { parseJwt } from '@/utils/jwtTokenUtils'; @@ -6,11 +7,10 @@ import { getToken, removeToken, setToken } from '@/utils/localStorageUtils'; import { LockOutlined, UserOutlined } from '@ant-design/icons'; import { LoginFormPage, ProFormText } from '@ant-design/pro-components'; import { history, useIntl } from '@umijs/max'; -import { Image, Space, theme } from 'antd'; +import { Image, theme } from 'antd'; import { useEffect } from 'react'; import logoImg from '../../../public/logo.png'; import mobifontImg from '../../../public/owner.png'; -import LangSwitches from '@/components/switch/LangSwitches'; const LoginPage = () => { const { token } = theme.useToken(); @@ -90,11 +90,6 @@ const LoginPage = () => { }, }} onFinish={async (values: API.LoginRequestBody) => handleLogin(values)} - actions={ - - - - } > <> { ]} /> - - +
+ +