diff --git a/lib/constants.js b/lib/constants.js index 011f2bd..f6d9f40 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -48,10 +48,12 @@ if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') { export const THEMES = [ { - name: 'dracula' + id: 'dracula', + name: 'Dracula' }, { - name: 'solarized' + id: 'solarized', + name: 'Solarized' } ] diff --git a/pages/index.js b/pages/index.js index ab1ff3c..622e54d 100644 --- a/pages/index.js +++ b/pages/index.js @@ -73,7 +73,7 @@ class Index extends React.Component { onBGChange={color => this.setState({ bgColor: color })} bg={this.state.bgColor} /> - + {this.props.content || DEFAULT_CODE}