mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Remove hidden prop from Property
This commit is contained in:
parent
1ac2fe7f96
commit
6d828ac959
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user