add canEditTitle and projectTitle props

This commit is contained in:
Ben Wheeler 2019-10-28 21:56:37 -04:00
parent f9e77bc508
commit 43f7cd5028

View file

@ -73,8 +73,10 @@ const ScratchDesktopHOC = function (WrappedComponent) {
render () {
const shouldShowTelemetryModal = (typeof ipcRenderer.sendSync('getTelemetryDidOptIn') !== 'boolean');
return (<WrappedComponent
canEditTitle
isScratchDesktop
projectId={defaultProjectId}
projectTitle={this.state.projectTitle}
showTelemetryModal={shouldShowTelemetryModal}
onClickLogo={this.handleClickLogo}
onProjectTelemetryEvent={this.handleProjectTelemetryEvent}