From bda66ab52cc1ed7e89e07d5bd030a5c42ca92188 Mon Sep 17 00:00:00 2001 From: Amr Shams <69462228+Amr-Shams@users.noreply.github.com> Date: Sat, 8 Jul 2023 01:15:30 +0300 Subject: [PATCH] an edit to the copy icon --- frontend/src/components/frame/Frame.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/frame/Frame.jsx b/frontend/src/components/frame/Frame.jsx index a2ef1b1c..f5eadabc 100644 --- a/frontend/src/components/frame/Frame.jsx +++ b/frontend/src/components/frame/Frame.jsx @@ -82,7 +82,10 @@ const Frame = ({ title="copy to editor" icon={faClone} size="s" - onClick={() => dispatch(setCommand(reqString))} + onClick={() => { + navigator.clipboard.writeText(reqString); + dispatch(setCommand(reqString)); + }} style={{ cursor: 'pointer', }}