1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 10:25:08 +01:00

Update CC routes for loading user and whitelabel settings in top level app

This commit is contained in:
Brett Sun 2016-01-11 16:28:27 +01:00
parent 3e66b78d4c
commit 723f93e629

View File

@ -13,6 +13,11 @@ import { mergeOptions } from '../../../../../utils/general_utils';
let CCRegisterPiece = React.createClass({ let CCRegisterPiece = React.createClass({
propTypes: { propTypes: {
// Provided from AscribeApp
currentUser: React.PropTypes.object,
whitelabel: React.PropTypes.object,
// Provided from router
location: React.PropTypes.object location: React.PropTypes.object
}, },
@ -85,6 +90,7 @@ let CCRegisterPiece = React.createClass({
setDocumentTitle(getLangText('Register a new piece')); setDocumentTitle(getLangText('Register a new piece'));
return ( return (
<RegisterPiece <RegisterPiece
{...this.props}
enableLocalHashing={false} enableLocalHashing={false}
headerMessage={getLangText('Register under a Creative Commons license')} headerMessage={getLangText('Register under a Creative Commons license')}
submitMessage={getLangText('Submit')} submitMessage={getLangText('Submit')}