Skip to content

Commit

Permalink
remove dup copy button
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneeza committed Jan 30, 2025
1 parent 6923499 commit acb8e86
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/code/src/Code/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,6 @@ function Code({
/>
)}

{/* This div is below the pre tag so that we can target it using the css sibiling selector when the pre tag is hovered */}
{showCopyButtonWithoutPanel && (
<CopyButton
className={getCopyButtonWithoutPanelStyles({
copyButtonAppearance,
})}
onCopy={onCopy}
contents={children}
/>
)}

{!!panel && panel}

{/* if there are deprecated props then manually render the panel component */}
Expand Down

0 comments on commit acb8e86

Please sign in to comment.