1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +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({
propTypes: {
params: React.PropTypes.object,
location: React.PropTypes.object
params: React.PropTypes.object
},
getInitialState() {
@ -111,7 +110,7 @@ let PieceContainer = React.createClass({
},
render() {
if(this.state.piece && this.state.piece.title) {
if(this.state.piece && this.state.piece.id) {
/*
This really needs a refactor!
@ -162,7 +161,7 @@ let PieceContainer = React.createClass({
piece={this.state.piece}
currentUser={this.state.currentUser}/>
}>
<PrizePieceDetails piece={this.state.piece} location={this.props.location}/>
<PrizePieceDetails piece={this.state.piece} />
</Piece>
);
} else {
@ -426,8 +425,7 @@ let PrizePieceRatings = React.createClass({
let PrizePieceDetails = React.createClass({
propTypes: {
piece: React.PropTypes.object,
location: React.PropTypes.object
piece: React.PropTypes.object
},
render() {
@ -464,8 +462,7 @@ let PrizePieceDetails = React.createClass({
overrideForm={true}
pieceId={this.props.piece.id}
otherData={this.props.piece.other_data}
multiple={true}
location={location}/>
multiple={true} />
</Form>
</CollapsibleParagraph>
);

View File

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

View File

@ -89,7 +89,7 @@ let CylandPieceContainer = React.createClass({
},
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(', '));
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(', '));
return (
<WalletPieceContainer