diff --git a/src/components/CodeBlock.js b/src/components/CodeBlock.js index f9d59f7f9..ab29f7bc7 100644 --- a/src/components/CodeBlock.js +++ b/src/components/CodeBlock.js @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; +import cx from 'classnames'; import Button from './Button'; import CodeEditor from './CodeEditor'; import CodeHighlight from './CodeHighlight'; @@ -37,8 +38,8 @@ const CodeBlock = ({ return ( - {preview && } -
+ {preview && } +
{live ? (