diff --git a/web/app/components/develop/secret-key/input-copy.tsx b/web/app/components/develop/secret-key/input-copy.tsx index d31077919e..cab0d5fc66 100644 --- a/web/app/components/develop/secret-key/input-copy.tsx +++ b/web/app/components/develop/secret-key/input-copy.tsx @@ -33,10 +33,10 @@ const InputCopy = ({ }, [isCopied]) return ( -
-
+
+
{children} -
+
{ copy(value) setIsCopied(true) @@ -49,13 +49,13 @@ const InputCopy = ({
-
+
-
-
{ +
+
{ copy(value) setIsCopied(true) }}> diff --git a/web/app/components/develop/secret-key/secret-key-generate.tsx b/web/app/components/develop/secret-key/secret-key-generate.tsx index 14b862f68a..07cdf11c48 100644 --- a/web/app/components/develop/secret-key/secret-key-generate.tsx +++ b/web/app/components/develop/secret-key/secret-key-generate.tsx @@ -23,14 +23,14 @@ const SecretKeyGenerateModal = ({ const { t } = useTranslation() return ( - -

{t('appApi.apiKeyModal.generateTips')}

+ +

{t('appApi.apiKeyModal.generateTips')}

-
diff --git a/web/app/components/develop/secret-key/secret-key-modal.tsx b/web/app/components/develop/secret-key/secret-key-modal.tsx index dbb5cc37c7..54b833edef 100644 --- a/web/app/components/develop/secret-key/secret-key-modal.tsx +++ b/web/app/components/develop/secret-key/secret-key-modal.tsx @@ -98,37 +98,37 @@ const SecretKeyModal = ({ return ( - -

{t('appApi.apiKeyModal.apiSecretKeyTips')}

+ +

{t('appApi.apiKeyModal.apiSecretKeyTips')}

{!apiKeysList &&
} { !!apiKeysList?.data?.length && ( -
-
-
{t('appApi.apiKeyModal.secretKey')}
-
{t('appApi.apiKeyModal.created')}
-
{t('appApi.apiKeyModal.lastUsed')}
-
+
+
+
{t('appApi.apiKeyModal.secretKey')}
+
{t('appApi.apiKeyModal.created')}
+
{t('appApi.apiKeyModal.lastUsed')}
+
-
+
{apiKeysList.data.map(api => ( -
-
{generateToken(api.token)}
-
{formatTime(Number(api.created_at), t('appLog.dateTimeFormat') as string)}
-
{api.last_used_at ? formatTime(Number(api.last_used_at), t('appLog.dateTimeFormat') as string) : t('appApi.never')}
-
+
+
{generateToken(api.token)}
+
{formatTime(Number(api.created_at), t('appLog.dateTimeFormat') as string)}
+
{api.last_used_at ? formatTime(Number(api.last_used_at), t('appLog.dateTimeFormat') as string) : t('appApi.never')}
+
-
{ +
{ // setIsCopied(true) copy(api.token) setCopyValue(api.token) }}>
{isCurrentWorkspaceManager - &&
{ + &&
{ setDelKeyId(api.id) setShowConfirmDelete(true) }}> @@ -142,12 +142,12 @@ const SecretKeyModal = ({ ) }
-
- setVisible(false)} newKey={newKey} /> + setVisible(false)} newKey={newKey} /> {showConfirmDelete && (