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