mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Remove unnecessary default props
This commit is contained in:
parent
6c8016e094
commit
fe06ea607f
@ -36,12 +36,6 @@ let AclButton = React.createClass({
|
|||||||
className: React.PropTypes.string
|
className: React.PropTypes.string
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultProps() {
|
|
||||||
return {
|
|
||||||
buttonAcceptClassName: ''
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
// Removes the acl_ prefix and converts to upper case
|
// Removes the acl_ prefix and converts to upper case
|
||||||
sanitizeAction() {
|
sanitizeAction() {
|
||||||
if (this.props.buttonAcceptName) {
|
if (this.props.buttonAcceptName) {
|
||||||
|
@ -31,12 +31,6 @@ let AclFormFactory = React.createClass({
|
|||||||
showNotification: React.PropTypes.bool
|
showNotification: React.PropTypes.bool
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultProps() {
|
|
||||||
return {
|
|
||||||
showNotification: false
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
isPiece() {
|
isPiece() {
|
||||||
return this.props.pieceOrEditions.constructor !== Array;
|
return this.props.pieceOrEditions.constructor !== Array;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user