Merge pull request #3329 from picklesrus/standalone-take3

Join flow standalone page
This commit is contained in:
picklesrus 2019-09-04 14:05:11 -04:00 committed by GitHub
commit eaeea17d77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View file

@ -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
View 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'));