bug fix for creating custom themes

main
Mike Fix 6 years ago
parent dfbf6452e1
commit 011f25dc4f

@ -93,7 +93,7 @@ class Carbon extends React.PureComponent {
(this.props.config.backgroundImage && this.props.config.backgroundImageSelection) || (this.props.config.backgroundImage && this.props.config.backgroundImageSelection) ||
this.props.config.backgroundImage this.props.config.backgroundImage
const themeConfig = THEMES_HASH[config.theme] const themeConfig = this.props.theme || THEMES_HASH[config.theme]
const content = ( const content = (
<div className="container"> <div className="container">

@ -379,6 +379,7 @@ class Editor extends React.Component {
config={this.state} config={this.state}
onChange={this.updateCode} onChange={this.updateCode}
loading={this.state.loading} loading={this.state.loading}
theme={theme}
> >
{code != null ? code : DEFAULT_CODE} {code != null ? code : DEFAULT_CODE}
</Carbon> </Carbon>

Loading…
Cancel
Save