mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Use null
to denote an empty React element instead of {}
This commit is contained in:
parent
34153c2322
commit
e96e7ffa2b
@ -208,7 +208,7 @@ let Form = React.createClass({
|
||||
if (this.state.submitted){
|
||||
return this.props.spinner;
|
||||
}
|
||||
if (this.props.buttons){
|
||||
if ('buttons' in this.props) {
|
||||
return this.props.buttons;
|
||||
}
|
||||
let buttons = null;
|
||||
|
@ -183,7 +183,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
return (
|
||||
<div className="register-piece--form">
|
||||
<Form
|
||||
buttons={{}}
|
||||
buttons={null}
|
||||
className="ascribe-form-bordered"
|
||||
ref="registerPieceForm">
|
||||
<Property
|
||||
@ -220,7 +220,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
</Property>
|
||||
</Form>
|
||||
<Form
|
||||
buttons={{}}
|
||||
buttons={null}
|
||||
className="ascribe-form-bordered"
|
||||
ref="additionalDataForm">
|
||||
<Property
|
||||
@ -246,7 +246,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
</Property>
|
||||
</Form>
|
||||
<Form
|
||||
buttons={{}}
|
||||
buttons={null}
|
||||
className="ascribe-form-bordered"
|
||||
ref="uploadersForm">
|
||||
<Property
|
||||
@ -349,7 +349,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
</Property>
|
||||
</Form>
|
||||
<Form
|
||||
buttons={{}}
|
||||
buttons={null}
|
||||
className="ascribe-form-bordered">
|
||||
<Property
|
||||
name="terms"
|
||||
|
Loading…
Reference in New Issue
Block a user