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
const themeConfig = THEMES_HASH[config.theme]
const themeConfig = this.props.theme || THEMES_HASH[config.theme]
const content = (
<div className="container">

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

Loading…
Cancel
Save