aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ContentView
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/components/ContentView')
-rw-r--r--web/src/js/components/ContentView/ContentEditor.jsx16
1 files changed, 5 insertions, 11 deletions
diff --git a/web/src/js/components/ContentView/ContentEditor.jsx b/web/src/js/components/ContentView/ContentEditor.jsx
index a38e4d6f..ca2f3370 100644
--- a/web/src/js/components/ContentView/ContentEditor.jsx
+++ b/web/src/js/components/ContentView/ContentEditor.jsx
@@ -6,7 +6,6 @@ export default class ContentEditor extends Component {
static propTypes = {
content: PropTypes.string.isRequired,
onSave: PropTypes.func.isRequired,
- onClose: PropTypes.func.isRequired,
onOpen: PropTypes.func.isRequired,
isClosed: PropTypes.bool.isRequired
}
@@ -20,17 +19,12 @@ export default class ContentEditor extends Component {
return (
<div>
{this.props.isClosed ?
- <a className="btn btn-default btn-xs pull-right" onClick={this.props.onOpen}>
- <i className="fa fa-pencil-square-o"/>
+ <a className="edit-flow" onClick={this.props.onOpen}>
+ <i className="fa fa-pencil"/>
</a> :
- <span>
- <a className="btn btn-default btn-xs pull-right" onClick={this.props.onClose}>
- <i className="fa fa-times"/>
- </a>
- <a className="btn btn-default btn-xs pull-right" onClick={() => this.props.onSave(this.state.content)}>
- <i className="fa fa-floppy-o"/>
- </a>
- </span>
+ <a className="edit-flow" onClick={() => this.props.onSave(this.state.content)}>
+ <i className="fa fa-check"/>
+ </a>
}
{!this.props.isClosed &&
<CodeEditor value={this.state.content} onChange={content => this.setState({content: content})}/>