From 5272e13f4574ea84e546f24b3f6239b414b33cdb Mon Sep 17 00:00:00 2001 From: lamacchinadesiderante Date: Wed, 11 Jan 2023 00:41:33 +0100 Subject: [PATCH] remove duplicate code --- .../src/components/CopyToClipboardButton.tsx | 30 +++++-------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/CopyToClipboardButton.tsx b/frontend/src/components/CopyToClipboardButton.tsx index 294058a..19e2cf7 100644 --- a/frontend/src/components/CopyToClipboardButton.tsx +++ b/frontend/src/components/CopyToClipboardButton.tsx @@ -29,28 +29,14 @@ const CopyToClipboardButton: React.FC = (props) => { return ( <> - - {show && - - - - - - - } - - - {show && - - - - - } - + {show && + + + + + } ); };