From 48728af43ad746d70ef3e251dc28b75028dea1e6 Mon Sep 17 00:00:00 2001 From: Clemens Date: Tue, 19 Jul 2016 12:23:20 +0200 Subject: moved flow editor state to redux --- .../js/components/ContentView/ContentEditor.jsx | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 web/src/js/components/ContentView/ContentEditor.jsx (limited to 'web/src/js/components/ContentView/ContentEditor.jsx') diff --git a/web/src/js/components/ContentView/ContentEditor.jsx b/web/src/js/components/ContentView/ContentEditor.jsx deleted file mode 100644 index ca2f3370..00000000 --- a/web/src/js/components/ContentView/ContentEditor.jsx +++ /dev/null @@ -1,36 +0,0 @@ -import React, { Component, PropTypes } from 'react' -import CodeEditor from '../common/CodeEditor' - -export default class ContentEditor extends Component { - - static propTypes = { - content: PropTypes.string.isRequired, - onSave: PropTypes.func.isRequired, - onOpen: PropTypes.func.isRequired, - isClosed: PropTypes.bool.isRequired - } - - constructor(props){ - super(props) - this.state = {content: this.props.content} - } - - render() { - return ( -
- {this.props.isClosed ? - - - : - this.props.onSave(this.state.content)}> - - - } - {!this.props.isClosed && - this.setState({content: content})}/> - } -
- - ) - } -} -- cgit v1.2.3