From b2cb3c3def131df0d7ffe0d85c11845146febc79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heli=20H=C3=A5rd=20K=C3=A4lloff?= Date: Sat, 28 Sep 2024 16:24:19 +0200 Subject: [PATCH] delete redundant component --- src/zui/ZUICopyToClipboard.tsx | 63 ---------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/zui/ZUICopyToClipboard.tsx diff --git a/src/zui/ZUICopyToClipboard.tsx b/src/zui/ZUICopyToClipboard.tsx deleted file mode 100644 index 2940a4555c..0000000000 --- a/src/zui/ZUICopyToClipboard.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import copy from 'copy-to-clipboard'; -import { ButtonBase, Collapse, Fade, Grid, Typography } from '@mui/material'; -import React, { useState } from 'react'; - -import { CopyIcon } from './ZUIInlineCopyToClipBoard'; -import { Msg } from 'core/i18n'; -import messageIds from './l10n/messageIds'; - -const ZUICopyToClipboard: React.FunctionComponent<{ - children: React.ReactNode; - copyText: string | number | boolean; -}> = ({ children, copyText }) => { - const [hover, setHover] = useState(false); - const [copied, setCopied] = useState(false); - - const handleClick = () => { - copy(copyText.toString()); - setCopied(true); - setTimeout(() => setCopied(false), 2500); - }; - - return ( - - setHover(true)} - onMouseLeave={() => setHover(false)} - style={{ cursor: 'pointer' }} - > - - {children} - - - - - - - - - - - - - - - - ); -}; - -export default ZUICopyToClipboard;