From d7bf3be82014fda4ef267ebe0255281723752f86 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 18 Jun 2017 14:23:16 -0700 Subject: [PATCH] pass config object --- lib/constants.js | 6 ++++-- pages/index.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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}