added source code toggle control to examples
parent
f0ec7a3157
commit
ff0ca898ab
|
@ -19,7 +19,7 @@ function Preview({ sourceKey, content }) {
|
||||||
hide source
|
hide source
|
||||||
</span>
|
</span>
|
||||||
<div style={{clear: "both", resize: "both", maxHeight: "50vh", overflow: "auto"}}>
|
<div style={{clear: "both", resize: "both", maxHeight: "50vh", overflow: "auto"}}>
|
||||||
<SourceCodeDisplay language="javascript" code={examplesListing[sourceKey]} />
|
<SourceCodeDisplay language="javascript" code={examplesListing[sourceKey]||''} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
Loading…
Reference in New Issue