mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Small code style fixes
This commit is contained in:
parent
441cf68fae
commit
cf6d653c68
@ -25,12 +25,16 @@ let WalletPieceContainer = React.createClass({
|
|||||||
currentUser: React.PropTypes.object.isRequired,
|
currentUser: React.PropTypes.object.isRequired,
|
||||||
loadPiece: React.PropTypes.func.isRequired,
|
loadPiece: React.PropTypes.func.isRequired,
|
||||||
handleDeleteSuccess: React.PropTypes.func.isRequired,
|
handleDeleteSuccess: React.PropTypes.func.isRequired,
|
||||||
submitButtonType: React.PropTypes.func.isRequired
|
submitButtonType: React.PropTypes.func.isRequired,
|
||||||
|
children: React.PropTypes.oneOfType([
|
||||||
|
React.PropTypes.object,
|
||||||
|
React.PropTypes.array
|
||||||
|
])
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
if(this.props.piece && this.props.piece.id) {
|
if (this.props.piece && this.props.piece.id) {
|
||||||
return (
|
return (
|
||||||
<Piece
|
<Piece
|
||||||
piece={this.props.piece}
|
piece={this.props.piece}
|
||||||
@ -45,12 +49,12 @@ let WalletPieceContainer = React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
subheader={
|
subheader={
|
||||||
<div className="ascribe-detail-header">
|
<div className="ascribe-detail-header">
|
||||||
<DetailProperty label={getLangText('REGISTREE')} value={ this.props.piece.user_registered } />
|
<DetailProperty label={getLangText('REGISTREE')} value={ this.props.piece.user_registered } />
|
||||||
<DetailProperty label={getLangText('ID')} value={ this.props.piece.bitcoin_id } ellipsis={true} />
|
<DetailProperty label={getLangText('ID')} value={ this.props.piece.bitcoin_id } ellipsis={true} />
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
}>
|
}>
|
||||||
<WalletActionPanel
|
<WalletActionPanel
|
||||||
piece={this.props.piece}
|
piece={this.props.piece}
|
||||||
currentUser={this.props.currentUser}
|
currentUser={this.props.currentUser}
|
||||||
@ -76,12 +80,10 @@ let WalletPieceContainer = React.createClass({
|
|||||||
url={ApiUrls.note_private_piece}
|
url={ApiUrls.note_private_piece}
|
||||||
currentUser={this.props.currentUser}/>
|
currentUser={this.props.currentUser}/>
|
||||||
</CollapsibleParagraph>
|
</CollapsibleParagraph>
|
||||||
|
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
</Piece>
|
</Piece>
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return (
|
return (
|
||||||
<div className="fullpage-spinner">
|
<div className="fullpage-spinner">
|
||||||
<AscribeSpinner color='dark-blue' size='lg' />
|
<AscribeSpinner color='dark-blue' size='lg' />
|
||||||
|
@ -60,9 +60,8 @@ let IkonotvArtistDetailsForm = React.createClass({
|
|||||||
render() {
|
render() {
|
||||||
let buttons, spinner, heading;
|
let buttons, spinner, heading;
|
||||||
let { isInline, handleSuccess } = this.props;
|
let { isInline, handleSuccess } = this.props;
|
||||||
|
|
||||||
|
|
||||||
if(!isInline) {
|
if (!isInline) {
|
||||||
buttons = (
|
buttons = (
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
@ -89,7 +88,7 @@ let IkonotvArtistDetailsForm = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.props.piece && this.props.piece.id && this.props.piece.extra_data) {
|
if (this.props.piece && this.props.piece.id && this.props.piece.extra_data) {
|
||||||
return (
|
return (
|
||||||
<Form
|
<Form
|
||||||
disabled={this.props.disabled}
|
disabled={this.props.disabled}
|
||||||
@ -150,4 +149,4 @@ let IkonotvArtistDetailsForm = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default IkonotvArtistDetailsForm;
|
export default IkonotvArtistDetailsForm;
|
||||||
|
@ -61,7 +61,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
|
|||||||
let buttons, spinner, heading;
|
let buttons, spinner, heading;
|
||||||
let { isInline, handleSuccess } = this.props;
|
let { isInline, handleSuccess } = this.props;
|
||||||
|
|
||||||
if(!isInline) {
|
if (!isInline) {
|
||||||
buttons = (
|
buttons = (
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
@ -88,7 +88,7 @@ let IkonotvArtworkDetailsForm = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.props.piece && this.props.piece.id && this.props.piece.extra_data) {
|
if (this.props.piece && this.props.piece.id && this.props.piece.extra_data) {
|
||||||
return (
|
return (
|
||||||
<Form
|
<Form
|
||||||
disabled={this.props.disabled}
|
disabled={this.props.disabled}
|
||||||
@ -166,4 +166,4 @@ let IkonotvArtworkDetailsForm = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default IkonotvArtworkDetailsForm;
|
export default IkonotvArtworkDetailsForm;
|
||||||
|
Loading…
Reference in New Issue
Block a user