fix(web): fix style override issue (#713)

This commit is contained in:
Rhon Joe 2023-08-02 17:32:11 +08:00 • committed by GitHub
commit 0fc76f7e17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 28 deletions

View file

@ -8,11 +8,6 @@ function useCopyToClipboard(): [CopiedValue, CopyFn] {
const [copiedText, setCopiedText] = useState<CopiedValue>(null)
const copy: CopyFn = useCallback(async (text: string) => {
if (!navigator?.clipboard) {
console.warn('Clipboard not supported')
return false
}
try {
writeText(text)
setCopiedText(text)