From d0cd54c10676da04f69698e124311f6cc84cd4e1 Mon Sep 17 00:00:00 2001 From: "minung.han" Date: Wed, 16 Mar 2022 01:39:43 +0900 Subject: [PATCH] =?UTF-8?q?Copy=20=EC=95=88=EB=90=98=EB=8D=98=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CodeBox.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/CodeBox.tsx b/components/CodeBox.tsx index 675a3af..facbcfa 100644 --- a/components/CodeBox.tsx +++ b/components/CodeBox.tsx @@ -5,8 +5,8 @@ type Props = { }; function CodeBox({ contents }: Props) { - const handleClick = () => { - navigator.clipboard.writeText(contents); + const handleClick = async () => { + await navigator.clipboard.writeText(contents); // TODO: 다른 UI로 대체 alert('Copied!'); };