This commit is contained in:
Jori Lallo
2016-03-05 14:27:29 -08:00
parent 4a42f28583
commit f6456a3817
11 changed files with 63 additions and 72 deletions

View File

@@ -3,7 +3,6 @@ import { connect } from 'react-redux';
import MarkdownEditor from '../../Components/MarkdownEditor';
import TextEditor from '../../Components/TextEditor';
import HistorySidebar from '../../Components/HistorySidebar';
import { toMarkdown } from '../../Utils/Markdown';
import { updateText } from '../../Actions';
@@ -27,7 +26,6 @@ class Dashboard extends Component {
// }
render() {
console.log(this.props.showHistorySidebar);
const activeEditors = this.props.activeEditors;
return (
@@ -50,13 +48,6 @@ class Dashboard extends Component {
</div>
) : null
}
{
this.props.showHistorySidebar ?
<div className={styles.sidebar}>
<HistorySidebar />
</div>
: null
}
</div>
);
}
@@ -64,10 +55,11 @@ class Dashboard extends Component {
const mapStateToProps = (state) => {
return {
text: state.text,
text: state.text.text,
editor: state.editor,
activeEditors: state.activeEditors,
showHistorySidebar: state.historySidebar.visible,
revisions: state.text.revisions,
};
};