Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Fix auto generated code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Aug 29, 2018
1 parent b3434f3 commit d5df1db
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/api-explorer/src/CodeSample.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ class CodeSample extends React.Component {
</ul>
<div className="hub-code-auto">
<CopyCode code={code} />
<pre
className={`tomorrow-night hub-lang hub-lang-${language}`}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: snippet }}
/>
<pre className={`tomorrow-night hub-lang hub-lang-${language}`}>
{snippet}
</pre>
</div>
</div>
);
Expand Down

0 comments on commit d5df1db

Please sign in to comment.