1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Forgot to include white label piece containers in previous fix

This commit is contained in:
Brett Sun 2015-12-07 15:14:01 +01:00
parent 2b6b78310c
commit fd9ec413f2
4 changed files with 8 additions and 11 deletions

View File

@ -51,8 +51,7 @@ import { setDocumentTitle } from '../../../../../../utils/dom_utils';
*/ */
let PieceContainer = React.createClass({ let PieceContainer = React.createClass({
propTypes: { propTypes: {
params: React.PropTypes.object, params: React.PropTypes.object
location: React.PropTypes.object
}, },
getInitialState() { getInitialState() {
@ -111,7 +110,7 @@ let PieceContainer = React.createClass({
}, },
render() { render() {
if(this.state.piece && this.state.piece.title) { if(this.state.piece && this.state.piece.id) {
/* /*
This really needs a refactor! This really needs a refactor!
@ -162,7 +161,7 @@ let PieceContainer = React.createClass({
piece={this.state.piece} piece={this.state.piece}
currentUser={this.state.currentUser}/> currentUser={this.state.currentUser}/>
}> }>
<PrizePieceDetails piece={this.state.piece} location={this.props.location}/> <PrizePieceDetails piece={this.state.piece} />
</Piece> </Piece>
); );
} else { } else {
@ -426,8 +425,7 @@ let PrizePieceRatings = React.createClass({
let PrizePieceDetails = React.createClass({ let PrizePieceDetails = React.createClass({
propTypes: { propTypes: {
piece: React.PropTypes.object, piece: React.PropTypes.object
location: React.PropTypes.object
}, },
render() { render() {
@ -464,8 +462,7 @@ let PrizePieceDetails = React.createClass({
overrideForm={true} overrideForm={true}
pieceId={this.props.piece.id} pieceId={this.props.piece.id}
otherData={this.props.piece.other_data} otherData={this.props.piece.other_data}
multiple={true} multiple={true} />
location={location}/>
</Form> </Form>
</CollapsibleParagraph> </CollapsibleParagraph>
); );

View File

@ -30,7 +30,7 @@ let WalletPieceContainer = React.createClass({
render() { render() {
if(this.props.piece && this.props.piece.title) { if(this.props.piece && this.props.piece.id) {
return ( return (
<Piece <Piece
piece={this.props.piece} piece={this.props.piece}

View File

@ -89,7 +89,7 @@ let CylandPieceContainer = React.createClass({
}, },
render() { render() {
if(this.state.piece && this.state.piece.title) { if(this.state.piece && this.state.piece.id) {
setDocumentTitle([this.state.piece.artist_name, this.state.piece.title].join(', ')); setDocumentTitle([this.state.piece.artist_name, this.state.piece.title].join(', '));
return ( return (

View File

@ -123,7 +123,7 @@ let IkonotvPieceContainer = React.createClass({
); );
} }
if(this.state.piece && this.state.piece.title) { if(this.state.piece && this.state.piece.id) {
setDocumentTitle([this.state.piece.artist_name, this.state.piece.title].join(', ')); setDocumentTitle([this.state.piece.artist_name, this.state.piece.title].join(', '));
return ( return (
<WalletPieceContainer <WalletPieceContainer