This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new d7c0067  fix: login module (#1635)
d7c0067 is described below

commit d7c006766eef8dca604f6bd7ad40bdd56fec5b79
Author: Ayush das <[email protected]>
AuthorDate: Sun Mar 21 12:37:10 2021 +0530

    fix: login module (#1635)
---
 web/src/pages/User/Login.less | 8 ++------
 web/src/pages/User/Login.tsx  | 8 --------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/web/src/pages/User/Login.less b/web/src/pages/User/Login.less
index c48cda3..6535c1b 100644
--- a/web/src/pages/User/Login.less
+++ b/web/src/pages/User/Login.less
@@ -40,10 +40,6 @@
   cursor: pointer;
 }
 
-.settings-icon {
-  font-size: 18px;
-}
-
 .content {
   flex: 1;
   padding: 32px 0;
@@ -75,7 +71,7 @@
 }
 
 .logo {
-  height: 44px;
+  height: 60px;
   margin-right: 16px;
   vertical-align: top;
 }
@@ -90,7 +86,7 @@
 }
 
 .desc {
-  margin-top: 12px;
+  margin-top: 20px;
   margin-bottom: 40px;
   color: @text-color-secondary;
   font-size: @font-size-base;
diff --git a/web/src/pages/User/Login.tsx b/web/src/pages/User/Login.tsx
index dc29b1b..14851e5 100644
--- a/web/src/pages/User/Login.tsx
+++ b/web/src/pages/User/Login.tsx
@@ -18,8 +18,6 @@ import React, { useState } from 'react';
 import { Button, notification, Tabs } from 'antd';
 import { SelectLang } from '@@/plugin-locale/SelectLang';
 import { Link, useIntl, history } from 'umi';
-import { SettingOutlined } from '@ant-design/icons';
-
 import LoginMethodPassword from '@/pages/User/components/LoginMethodPassword';
 import LoginMethodExample from '@/pages/User/components/LoginMethodExample';
 import type { UserModule } from '@/pages/User/typing';
@@ -43,9 +41,6 @@ const Page: React.FC = () => {
   const { formatMessage } = useIntl();
   const [loginMethod, setLoginMethod] = useState(loginMethods[0]);
 
-  const onSettingsClick = () => {
-    
history.replace(`/settings?redirect=${encodeURIComponent(history.location.pathname)}`);
-  };
 
   const onTabChange = (activeKey: string) => {
     loginMethods.forEach((item, index) => {
@@ -86,9 +81,6 @@ const Page: React.FC = () => {
   return (
     <div className={styles.container}>
       <div className={styles.lang}>
-        <div className={styles.settings} onClick={onSettingsClick}>
-          <SettingOutlined />
-        </div>
         <SelectLang />
       </div>
       <div className={styles.content}>

Reply via email to