From fc679ac41261c2d890b7e21400258e95806351e0 Mon Sep 17 00:00:00 2001 From: Andrii Ieroshenko Date: Wed, 10 Jan 2024 17:39:22 -0800 Subject: [PATCH] remove copying status --- packages/jupyter-ai/src/components/copy-button.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/jupyter-ai/src/components/copy-button.tsx b/packages/jupyter-ai/src/components/copy-button.tsx index 47e59b5af..cb558ef83 100644 --- a/packages/jupyter-ai/src/components/copy-button.tsx +++ b/packages/jupyter-ai/src/components/copy-button.tsx @@ -4,13 +4,11 @@ import { Box, Button } from '@mui/material'; enum CopyStatus { None, - Copying, Copied } const COPYBTN_TEXT_BY_STATUS: Record = { [CopyStatus.None]: 'Copy to Clipboard', - [CopyStatus.Copying]: 'Copying …', [CopyStatus.Copied]: 'Copied!' }; @@ -22,7 +20,6 @@ export function CopyButton(props: CopyButtonProps): JSX.Element { const [copyStatus, setCopyStatus] = useState(CopyStatus.None); const copy = useCallback(async () => { - setCopyStatus(CopyStatus.Copying); try { await navigator.clipboard.writeText(props.value); } catch (err) {