From 3ac1ef34aec2e35e022821006c6e205c7b550fc7 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Tue, 20 Aug 2019 13:20:34 +0200 Subject: [PATCH] Able to use scratch3 join flow in editor --- src/views/preview/project-view.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/preview/project-view.jsx b/src/views/preview/project-view.jsx index 240996f98..51afed387 100644 --- a/src/views/preview/project-view.jsx +++ b/src/views/preview/project-view.jsx @@ -18,6 +18,7 @@ const ProjectInfo = require('../../lib/project-info'); const PreviewPresentation = require('./presentation.jsx'); const projectShape = require('./projectshape.jsx').projectShape; const Registration = require('../../components/registration/registration.jsx'); +const Scratch3Registration = require('../../components/registration/scratch3-registration.jsx'); const ConnectedLogin = require('../../components/login/connected-login.jsx'); const CanceledDeletionModal = require('../../components/login/canceled-deletion-modal.jsx'); const NotAvailable = require('../../components/not-available/not-available.jsx'); @@ -32,6 +33,8 @@ const frameless = require('../../lib/frameless'); const GUI = require('scratch-gui'); const IntlGUI = injectIntl(GUI.default); +const USE_SCRATCH3_REGISTRATION = false; + const localStorageAvailable = 'localStorage' in window && window.localStorage !== null; const Sentry = require('@sentry/browser'); @@ -751,7 +754,11 @@ class Preview extends React.Component { onUpdateProjectThumbnail={this.props.handleUpdateProjectThumbnail} onUpdateProjectTitle={this.handleUpdateProjectTitle} /> - + {USE_SCRATCH3_REGISTRATION ? ( + + ) : ( + + )} }