@@ -7,7 +7,6 @@ const playUrl = require('../../../images/play.svg');
77const stopUrl = require ( '../../../images/stop.svg' ) ;
88const preferencesUrl = require ( '../../../images/preferences.svg' ) ;
99const editProjectNameUrl = require ( '../../../images/pencil.svg' ) ;
10- const helpUrl = require ( '../../../images/help.svg' ) ;
1110
1211class Toolbar extends React . Component {
1312 constructor ( props ) {
@@ -94,30 +93,6 @@ class Toolbar extends React.Component {
9493 Auto-refresh
9594 </ label >
9695 </ div >
97- {
98- this . props . currentUser == null ?
99- null :
100- < div className = "toolbar__serve-secure" >
101- < input
102- id = "serve-secure"
103- type = "checkbox"
104- checked = { this . props . project . serveSecure || false }
105- onChange = { ( event ) => {
106- this . props . setServeSecure ( event . target . checked ) ;
107- } }
108- />
109- < label htmlFor = "serve-secure" className = "toolbar__serve-secure-label" >
110- HTTPS
111- </ label >
112- < button
113- className = "toolbar__serve-secure-help"
114- onClick = { ( ) => this . props . showHelpModal ( 'serveSecure' ) }
115- aria-label = "help"
116- >
117- < InlineSVG src = { helpUrl } alt = "Help" />
118- </ button >
119- </ div >
120- }
12196 < div className = { nameContainerClass } >
12297 < a
12398 className = "toolbar__project-name"
@@ -187,15 +162,12 @@ Toolbar.propTypes = {
187162 name : PropTypes . string . isRequired ,
188163 isEditingName : PropTypes . bool ,
189164 id : PropTypes . string ,
190- serveSecure : PropTypes . bool ,
191165 } ) . isRequired ,
192166 showEditProjectName : PropTypes . func . isRequired ,
193167 hideEditProjectName : PropTypes . func . isRequired ,
194- showHelpModal : PropTypes . func . isRequired ,
195168 infiniteLoop : PropTypes . bool . isRequired ,
196169 autorefresh : PropTypes . bool . isRequired ,
197170 setAutorefresh : PropTypes . func . isRequired ,
198- setServeSecure : PropTypes . func . isRequired ,
199171 startSketch : PropTypes . func . isRequired ,
200172 startAccessibleSketch : PropTypes . func . isRequired ,
201173 saveProject : PropTypes . func . isRequired ,
0 commit comments