@@ -24,14 +24,15 @@ import BackdropLibrary from '../../containers/backdrop-library.jsx';
2424import Watermark from '../../containers/watermark.jsx' ;
2525
2626import Backpack from '../../containers/backpack.jsx' ;
27+ import PreviewModal from '../../containers/preview-modal.jsx' ;
2728import ImportModal from '../../containers/import-modal.jsx' ;
2829import WebGlModal from '../../containers/webgl-modal.jsx' ;
2930import TipsLibrary from '../../containers/tips-library.jsx' ;
3031import Cards from '../../containers/cards.jsx' ;
3132import Alerts from '../../containers/alerts.jsx' ;
3233import DragLayer from '../../containers/drag-layer.jsx' ;
3334import ConnectionModal from '../../containers/connection-modal.jsx' ;
34-
35+ import TelemetryModal from '../telemetry-modal/telemetry-modal.jsx' ;
3536
3637import layout , { STAGE_SIZE_MODES } from '../../lib/layout-constants' ;
3738import { resolveStageSize } from '../../lib/screen-utils' ;
@@ -103,13 +104,19 @@ const GUIComponent = props => {
103104 onExtensionButtonClick,
104105 onRequestCloseBackdropLibrary,
105106 onRequestCloseCostumeLibrary,
107+ onRequestCloseTelemetryModal,
106108 onSeeCommunity,
107109 onShare,
110+ onTelemetryModalCancel,
111+ onTelemetryModalOptIn,
112+ onTelemetryModalOptOut,
113+ previewInfoVisible,
108114 showComingSoon,
109115 soundsTabVisible,
110116 rubyTabVisible,
111117 stageSizeMode,
112118 targetIsStage,
119+ telemetryModalVisible,
113120 tipsLibraryVisible,
114121 vm,
115122 ...componentProps
@@ -151,6 +158,17 @@ const GUIComponent = props => {
151158 dir = { isRtl ? 'rtl' : 'ltr' }
152159 { ...componentProps }
153160 >
161+ { previewInfoVisible ? (
162+ < PreviewModal />
163+ ) : null }
164+ { telemetryModalVisible ? (
165+ < TelemetryModal
166+ onCancel = { onTelemetryModalCancel }
167+ onOptIn = { onTelemetryModalOptIn }
168+ onOptOut = { onTelemetryModalOptOut }
169+ onRequestClose = { onRequestCloseTelemetryModal }
170+ />
171+ ) : null }
154172 { loading ? (
155173 < Loader />
156174 ) : null }
@@ -400,17 +418,23 @@ GUIComponent.propTypes = {
400418 onOpenRegistration : PropTypes . func ,
401419 onRequestCloseBackdropLibrary : PropTypes . func ,
402420 onRequestCloseCostumeLibrary : PropTypes . func ,
421+ onRequestCloseTelemetryModal : PropTypes . func ,
403422 onSeeCommunity : PropTypes . func ,
404423 onShare : PropTypes . func ,
405424 onTabSelect : PropTypes . func ,
425+ onTelemetryModalCancel : PropTypes . func ,
426+ onTelemetryModalOptIn : PropTypes . func ,
427+ onTelemetryModalOptOut : PropTypes . func ,
406428 onToggleLoginOpen : PropTypes . func ,
407429 onUpdateProjectTitle : PropTypes . func ,
430+ previewInfoVisible : PropTypes . bool ,
408431 renderLogin : PropTypes . func ,
409432 rubyTabVisible : PropTypes . bool ,
410433 showComingSoon : PropTypes . bool ,
411434 soundsTabVisible : PropTypes . bool ,
412435 stageSizeMode : PropTypes . oneOf ( Object . keys ( STAGE_SIZE_MODES ) ) ,
413436 targetIsStage : PropTypes . bool ,
437+ telemetryModalVisible : PropTypes . bool ,
414438 tipsLibraryVisible : PropTypes . bool ,
415439 vm : PropTypes . instanceOf ( VM ) . isRequired
416440} ;
0 commit comments