Fix Brian's borks 🙃

main
Jake Dexheimer 8 years ago
parent cef5c9652e
commit 95ae960536

@ -61,8 +61,7 @@ const DEFAULT_SETTINGS = {
<Spinner /> <Spinner />
<style jsx>{` <style jsx>{`
div { div {
width: 680px; height: 352px;
height: 500px;
} }
`} `}
</style> </style>
@ -71,6 +70,7 @@ const DEFAULT_SETTINGS = {
if (this.state.loading === false) { if (this.state.loading === false) {
content = ( content = (
<div id="container" style={containerStyle}> <div id="container" style={containerStyle}>
{ true ? <WindowControls /> : null }
<CodeMirror className="CodeMirrorContainer" value={this.props.children} options={options} /> <CodeMirror className="CodeMirrorContainer" value={this.props.children} options={options} />
</div> </div>
) )

@ -28,7 +28,7 @@ class Index extends React.Component {
constructor() { constructor() {
super() super()
this.state = { this.state = {
bgColor: '#111111', background: '#111111',
theme: THEMES[0].id, theme: THEMES[0].id,
language: 'javascript' // TODO LANGUAGES[0] language: 'javascript' // TODO LANGUAGES[0]
} }
@ -66,7 +66,7 @@ class Index extends React.Component {
<Toolbar <Toolbar
save={this.save} save={this.save}
upload={this.upload} upload={this.upload}
onBGChange={color => this.setState({ bgColor: color })} onBGChange={color => this.setState({ background: color })}
onThemeChange={theme => this.setState({ theme: theme.id })} onThemeChange={theme => this.setState({ theme: theme.id })}
onLanguageChange={language => this.setState({ language })} onLanguageChange={language => this.setState({ language })}
bg={this.state.bgColor} bg={this.state.bgColor}

Loading…
Cancel
Save