From ef1668a00ba127a6de7da7333ba641ac88fcedbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E4=BC=9F=E5=BC=BA?= Date: Wed, 24 May 2023 16:10:38 +0800 Subject: [PATCH] fix: api key copy fail --- web/app/components/develop/secret-key/input-copy.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/app/components/develop/secret-key/input-copy.tsx b/web/app/components/develop/secret-key/input-copy.tsx index 7cb88138fa..8ad1b78da6 100644 --- a/web/app/components/develop/secret-key/input-copy.tsx +++ b/web/app/components/develop/secret-key/input-copy.tsx @@ -1,6 +1,6 @@ 'use client' import React, { useEffect, useState } from 'react' -import useCopyToClipboard from '@/hooks/use-copy-to-clipboard' +import copy from 'copy-to-clipboard' import Tooltip from '@/app/components/base/tooltip' import { t } from 'i18next' import s from './style.module.css' @@ -18,7 +18,6 @@ const InputCopy = ({ readOnly = true, children, }: IInputCopyProps) => { - const [_, copy] = useCopyToClipboard() const [isCopied, setIsCopied] = useState(false) useEffect(() => {