Skip to content

Commit 77cd7d7

Browse files
committed
📄 Update Help Docs on React Code Playground
1 parent 41d1256 commit 77cd7d7

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

examples/code-playground-react.htm

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
display: flex;
212212
flex-direction: column;
213213
align-items: center;
214-
max-width: 700px;
214+
max-width: 800px;
215215
}
216216

217217
.overlay input,
@@ -519,7 +519,14 @@
519519

520520
function CodeControls(props) {
521521
if (props.state.selectedFile === null) {
522-
return null;
522+
return (
523+
<div className="code-controls">
524+
<div className="file-info"></div>
525+
<div className="buttons">
526+
<span className="btn" onClick={props.toggleShowInfo}>Info</span>
527+
</div>
528+
</div>
529+
);
523530
}
524531

525532
const {
@@ -604,8 +611,9 @@ <h2>Code Playground Info</h2>
604611
<li>This app creates a temporary Playground Site that will be available for 1 hour.</li>
605612
<li>The main version of this app exits at <a href="https://www.dataformsjs.com/en/playground" target="_blank">https://www.dataformsjs.com/en/playground</a></li>
606613
<li>This is a fully functional version of the playground, however unlike the main site there is no warning when a site is about to expire and layout of this app does not provide mobile support.</li>
607-
<li>With this playground app sites are created automatically when the page is first opened.</li>
614+
<li>With this playground app sites are created automatically when the page is first opened; you do not have to click an extra button as you normally would on the main site.</li>
608615
<li>This app was created to demonstrate a React version of the Playground and to provide an example file that can be used as a good starting point if you would like to develop a custom online content editor that has similar behavior.</li>
616+
<li>The temporary site key is saved to local storage so this site can be accessed both from here and the main site. To start over delete the site from the main URL then refresh this page.</li>
609617
</ul>
610618
</div>
611619
</div>

0 commit comments

Comments
 (0)