mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #3329 from picklesrus/standalone-take3
Join flow standalone page
This commit is contained in:
commit
eaeea17d77
2 changed files with 24 additions and 0 deletions
|
@ -161,6 +161,13 @@
|
|||
"view": "jobs/moderator/moderator",
|
||||
"title": "Community Moderator"
|
||||
},
|
||||
{
|
||||
"name": "join",
|
||||
"pattern": "^/join/?$",
|
||||
"routeAlias": "/join/?$",
|
||||
"view": "join/join",
|
||||
"title": "Join Scratch"
|
||||
},
|
||||
{
|
||||
"name": "messages",
|
||||
"pattern": "^/messages/?$",
|
||||
|
|
17
src/views/join/join.jsx
Normal file
17
src/views/join/join.jsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
const React = require('react');
|
||||
const render = require('../../lib/render.jsx');
|
||||
const JoinModal = require('../../components/modal/join/modal.jsx');
|
||||
const ErrorBoundary = require('../../components/errorboundary/errorboundary.jsx');
|
||||
// Require this even though we don't use it because, without it, webpack runs out of memory...
|
||||
const Page = require('../../components/page/www/page.jsx'); // eslint-disable-line no-unused-vars
|
||||
|
||||
const openModal = true;
|
||||
const Register = () => (
|
||||
<ErrorBoundary>
|
||||
<JoinModal
|
||||
isOpen={openModal}
|
||||
key="scratch3registration"
|
||||
/>
|
||||
</ErrorBoundary>
|
||||
);
|
||||
render(<Register />, document.getElementById('app'));
|
Loading…
Reference in a new issue