Able to use scratch3 join flow in editor

This commit is contained in:
Ben Wheeler 2019-08-20 13:20:34 +02:00
parent 22a2c13979
commit 3ac1ef34ae

View file

@ -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}
/>
<Registration />
{USE_SCRATCH3_REGISTRATION ? (
<Scratch3Registration />
) : (
<Registration />
)}
<CanceledDeletionModal />
</React.Fragment>
}