You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/01/12 03:10:37 UTC

(incubator-devlake) 05/06: refactor(config-ui): use input component to replace password component

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

mintsweet pushed a commit to branch fix-bugs
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit a19fca994a836505a6ea7b11cf64de8e513e6a84
Author: mintsweet <0x...@gmail.com>
AuthorDate: Fri Jan 12 15:42:55 2024 +1300

    refactor(config-ui): use input component to replace password component
---
 .../src/plugins/components/connection-form/fields/password.tsx      | 2 +-
 .../src/plugins/components/connection-form/fields/secret-key.tsx    | 2 +-
 config-ui/src/plugins/components/connection-form/fields/token.tsx   | 2 +-
 config-ui/src/plugins/register/jira/connection-fields/auth.tsx      | 6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/config-ui/src/plugins/components/connection-form/fields/password.tsx b/config-ui/src/plugins/components/connection-form/fields/password.tsx
index de6e7f190..8cbb8bd29 100644
--- a/config-ui/src/plugins/components/connection-form/fields/password.tsx
+++ b/config-ui/src/plugins/components/connection-form/fields/password.tsx
@@ -58,7 +58,7 @@ export const ConnectionPassword = ({
 
   return (
     <Block title={label ?? 'Password'} description={subLabel ? subLabel : null} required>
-      <Input.Password
+      <Input
         style={{ width: 386 }}
         placeholder={type === 'update' ? '********' : placeholder ? placeholder : 'Your Password'}
         value={value}
diff --git a/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx b/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx
index 0c1d13065..64134f28d 100644
--- a/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx
+++ b/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx
@@ -75,7 +75,7 @@ export const ConnectionSecretKey = ({
 
   return (
     <Block title={label ?? 'SecretKey'} description={subLabel ? subLabel : null} required>
-      <Input.Password
+      <Input
         style={{ width: 386 }}
         placeholder={placeholder ?? 'Your SecretKey'}
         value={value}
diff --git a/config-ui/src/plugins/components/connection-form/fields/token.tsx b/config-ui/src/plugins/components/connection-form/fields/token.tsx
index 647f50d68..1882a45f3 100644
--- a/config-ui/src/plugins/components/connection-form/fields/token.tsx
+++ b/config-ui/src/plugins/components/connection-form/fields/token.tsx
@@ -65,7 +65,7 @@ export const ConnectionToken = ({ type, label, subLabel, initialValue, value, se
 
   return (
     <Block title={label ?? 'Token'} description={subLabel ? subLabel : null} required>
-      <Input.Password
+      <Input
         style={{ width: 386 }}
         placeholder={type === 'update' ? '********' : 'Your Token'}
         value={value}
diff --git a/config-ui/src/plugins/register/jira/connection-fields/auth.tsx b/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
index dc00bebaf..fb3b63cf2 100644
--- a/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
+++ b/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
@@ -167,7 +167,7 @@ export const Auth = ({ type, initialValues, values, setValues, setErrors }: Prop
             }
             required
           >
-            <Input.Password
+            <Input
               style={{ width: 386 }}
               placeholder={type === 'update' ? '********' : 'Your PAT'}
               value={values.password}
@@ -191,7 +191,7 @@ export const Auth = ({ type, initialValues, values, setValues, setErrors }: Prop
                 <Input placeholder="Your Username" value={values.username} onChange={handleChangeUsername} />
               </Block>
               <Block title="Password" required>
-                <Input.Password
+                <Input
                   style={{ width: 386 }}
                   placeholder={type === 'update' ? '********' : 'Your Password'}
                   value={values.password}
@@ -210,7 +210,7 @@ export const Auth = ({ type, initialValues, values, setValues, setErrors }: Prop
               }
               required
             >
-              <Input.Password
+              <Input
                 style={{ width: 386 }}
                 placeholder={type === 'update' ? '********' : 'Your Password'}
                 value={values.token}