From 251ab99ac711d9d6d2c8638b78c3f52e3792b9e6 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Fri, 1 Sep 2017 12:40:15 -0400 Subject: [PATCH] move items from editor dropdown to nav --- client/components/Nav.jsx | 27 ++++++++++++++---- client/modules/IDE/components/Editor.jsx | 36 +++++++++--------------- client/modules/IDE/pages/IDEView.jsx | 3 +- 3 files changed, 37 insertions(+), 29 deletions(-) diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index e637f120..a183b179 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -180,7 +180,6 @@ class Nav extends React.PureComponent { - {/* TODO--add these things to the nav
  • - Tidy Code +
  • - Find +
  • + {/*
  • -
    { this.codemirrorContainer = element; }} className="editor-holder" tabIndex="0">
    @@ -303,7 +293,6 @@ Editor.propTypes = { editorOptionsVisible: PropTypes.bool.isRequired, showEditorOptions: PropTypes.func.isRequired, closeEditorOptions: PropTypes.func.isRequired, - showKeyboardShortcutModal: PropTypes.func.isRequired, setUnsavedChanges: PropTypes.func.isRequired, startRefreshSketch: PropTypes.func.isRequired, autorefresh: PropTypes.bool.isRequired, @@ -320,7 +309,8 @@ Editor.propTypes = { collapseSidebar: PropTypes.func.isRequired, expandSidebar: PropTypes.func.isRequired, isUserOwner: PropTypes.bool, - clearConsole: PropTypes.func.isRequired + clearConsole: PropTypes.func.isRequired, + provideController: PropTypes.func.isRequired }; Editor.defaultProps = { diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index fdb01704..a32f78ec 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -219,6 +219,7 @@ class IDEView extends React.Component { unsavedChanges={this.props.ide.unsavedChanges} warnIfUnsavedChanges={this.warnIfUnsavedChanges} showKeyboardShortcutModal={this.props.showKeyboardShortcutModal} + cmController={this.cmController} /> { this.cmController = ctl; }} /> - ); } }