Language choice bugfix

main
Mike Fix 7 years ago
parent d7e5ac0cd6
commit 5e637a896b

@ -70,7 +70,6 @@ class Editor extends React.Component {
render () { render () {
return ( return (
<Page enableHeroText> <Page enableHeroText>
{/* TODO this doesn't update the render */}
<ReadFileDropContainer <ReadFileDropContainer
onDrop={droppedContent => this.setState({ droppedContent })} onDrop={droppedContent => this.setState({ droppedContent })}
> >
@ -80,7 +79,7 @@ class Editor extends React.Component {
upload={this.upload} upload={this.upload}
onBGChange={color => this.setState({ background: 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: language.module })}
onSettingsChange={(key, value) => this.setState({ [key]: value })} onSettingsChange={(key, value) => this.setState({ [key]: value })}
bg={this.state.background} bg={this.state.background}
enabled={this.state} enabled={this.state}

Loading…
Cancel
Save