1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-29 00:58:03 +02:00

Remove hidden prop from Property

This commit is contained in:
Tim Daubenschütz 2015-11-17 16:14:20 +01:00
parent 1ac2fe7f96
commit 6d828ac959

View File

@ -14,8 +14,6 @@ const { bool, element, string, oneOfType, func, object, arrayOf } = React.PropTy
const Property = React.createClass({
propTypes: {
hidden: bool,
editable: bool,
// If we want Form to have a different value for disabled as Property has one for
@ -49,7 +47,6 @@ const Property = React.createClass({
getDefaultProps() {
return {
editable: true,
hidden: false,
expanded: true,
className: ''
};
@ -192,7 +189,7 @@ const Property = React.createClass({
},
getClassName() {
if(this.props.hidden || !this.props.expanded){
if(!this.props.expanded){
return 'is-hidden';
}
if(!this.props.editable){