mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-16 02:48:20 +08:00
fix: api key copy fail (#186)
This commit is contained in:
parent
d96bcfa4ee
commit
8b44dba988
@ -1,6 +1,6 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import React, { useEffect, useState } from 'react'
|
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 Tooltip from '@/app/components/base/tooltip'
|
||||||
import { t } from 'i18next'
|
import { t } from 'i18next'
|
||||||
import s from './style.module.css'
|
import s from './style.module.css'
|
||||||
@ -18,7 +18,6 @@ const InputCopy = ({
|
|||||||
readOnly = true,
|
readOnly = true,
|
||||||
children,
|
children,
|
||||||
}: IInputCopyProps) => {
|
}: IInputCopyProps) => {
|
||||||
const [_, copy] = useCopyToClipboard()
|
|
||||||
const [isCopied, setIsCopied] = useState(false)
|
const [isCopied, setIsCopied] = useState(false)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user