diff --git a/resources/scripts/components/elements/CopyOnClick.tsx b/resources/scripts/components/elements/CopyOnClick.tsx index 431e9c8d6c..0bd6019f67 100644 --- a/resources/scripts/components/elements/CopyOnClick.tsx +++ b/resources/scripts/components/elements/CopyOnClick.tsx @@ -44,21 +44,19 @@ const CopyOnClick = ({ text, showInNotification = true, children }: CopyOnClickP return ( <> - {copied && ( - - -
-
-

- {showInNotification - ? `Copied "${String(text)}" to clipboard.` - : 'Copied text to clipboard.'} -

-
+ + +
+
+

+ {showInNotification + ? `Copied "${String(text)}" to clipboard.` + : 'Copied text to clipboard.'} +

- - - )} +
+
+
{child} );