hide copy to clipboard when in presentation mode
@@ -95,8 +95,13 @@ class SnippetContainer extends React.Component {
}
renderCopyToClipboard() {
+ const {isPresentation} = this.props
const {displayCopied} = this.state
+ if (isPresentation) {
+ return null
+ }
+
const className = 'snippet-copy-to-clipboard ' + (displayCopied ? 'copied': 'copy')
return (
