added source code toggle control to examples
parent
ff0ca898ab
commit
2f0c7fe4ec
|
@ -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>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue