1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 21:52:08 +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({ const Property = React.createClass({
propTypes: { propTypes: {
hidden: bool,
editable: bool, editable: bool,
// If we want Form to have a different value for disabled as Property has one for // 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() { getDefaultProps() {
return { return {
editable: true, editable: true,
hidden: false,
expanded: true, expanded: true,
className: '' className: ''
}; };
@ -192,7 +189,7 @@ const Property = React.createClass({
}, },
getClassName() { getClassName() {
if(this.props.hidden || !this.props.expanded){ if(!this.props.expanded){
return 'is-hidden'; return 'is-hidden';
} }
if(!this.props.editable){ if(!this.props.editable){