move editor out of header

This commit is contained in:
David Lechner
2020-04-08 00:00:49 -05:00
parent cdfd224934
commit dc50b5787f
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
.App-header {
background-color: #282c34;
min-height: 100vh;
min-height: 25vh;
display: flex;
flex-direction: column;
align-items: center;
+7 -7
View File
@@ -13,13 +13,6 @@ function App() {
return (
<div className="App">
<header className="App-header">
<AceEditor
mode="python"
theme="github"
onChange={onChange}
name="editor"
editorProps={{ $blockScrolling: true }}
/>
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
@@ -32,6 +25,13 @@ function App() {
Learn React
</a>
</header>
<AceEditor
mode="python"
theme="github"
onChange={onChange}
name="editor"
editorProps={{ $blockScrolling: true }}
/>
</div>
);
}