File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ Screen.propTypes = {
7979 children : PropTypes . node . isRequired
8080} ;
8181
82+ const isUserOwner = ( { project, user } ) => ( project . owner && project . owner . id === user . id ) ;
83+
8284const IDEViewMobile = ( props ) => {
8385 // const
8486 const {
@@ -130,7 +132,7 @@ const IDEViewMobile = (props) => {
130132 isExpanded = { ide . sidebarIsExpanded }
131133 expandSidebar = { expandSidebar }
132134 collapseSidebar = { collapseSidebar }
133- isUserOwner = { setTmController }
135+ isUserOwner = { isUserOwner ( props ) }
134136 clearConsole = { clearConsole }
135137 consoleEvents = { console }
136138 showRuntimeErrorWarning = { showRuntimeErrorWarning }
@@ -247,6 +249,11 @@ IDEViewMobile.propTypes = {
247249
248250 hideRuntimeErrorWarning : PropTypes . func . isRequired ,
249251
252+ user : PropTypes . shape ( {
253+ authenticated : PropTypes . bool . isRequired ,
254+ id : PropTypes . string ,
255+ username : PropTypes . string
256+ } ) . isRequired ,
250257} ;
251258
252259
You can’t perform that action at this time.
0 commit comments