remove classname from copybutton since it's already applied by default

This commit is contained in:
Evan Simkowitz 2024-09-09 12:01:57 -07:00
parent 942f7c4431
commit 1cf3671ac4
No known key found for this signature in database

View File

@ -89,7 +89,7 @@ const CodeBlock = ({ children, onClickExecute }: CodeBlockProps) => {
<pre className="codeblock">
{children}
<div className="codeblock-actions">
<CopyButton className="copy-button" onClick={handleCopy} title="Copy" />
<CopyButton onClick={handleCopy} title="Copy" />
{onClickExecute && <i className="fa-regular fa-square-terminal" onClick={handleExecute}></i>}
</div>
</pre>