mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
Able to use scratch3 join flow in editor
This commit is contained in:
parent
22a2c13979
commit
3ac1ef34ae
1 changed files with 8 additions and 1 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue