diff --git a/README.md b/README.md index fb75d4e..0a42524 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Creating cover images for your blogs is now super easy. - diff --git a/src/components/Editor.js b/src/components/Editor.js index 7a93d03..5796605 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -34,7 +34,7 @@ class Editor extends React.Component { componentDidMount() { // console.log("Mount") fetch(devIconsUrl).then(r => r.json()).then(data => { - data.push({ name: 'custom' }) + data.unshift({ name: 'upload your own' }) this.setState({ devIconOptions: data.map(item => ({ 'value': item.name, 'label': item.name })) }) }) } @@ -111,10 +111,10 @@ class Editor extends React.Component {
- {this.state.icon.label === 'custom' ? -
+ {this.state.icon.label === 'upload your own' ? +
this.setState({ 'customIcon': URL.createObjectURL(e.target.files[0]) })} />