added source code toggle control to examples

development
mcyph 2021-03-25 19:06:55 +11:00
parent ff0ca898ab
commit 2f0c7fe4ec
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ export class SourceCodeDisplay extends Component {
}} }}
className={`language-${this.props.language}`} className={`language-${this.props.language}`}
> >
{this.props.code.trim()} {(this.props.code || '').trim()}
</code> </code>
</pre> </pre>
</> </>