Dramatically simplify use of mx_fadable
by applying it to parent elements of things that need to be faded.
This commit is contained in:
parent
2f8f2ce76e
commit
b1f2a6c1e9
6 changed files with 21 additions and 39 deletions
|
@ -79,9 +79,6 @@ module.exports = React.createClass({
|
|||
// callback which is called when more content is needed.
|
||||
onFillRequest: React.PropTypes.func,
|
||||
|
||||
// whether to display as faded and uninteractable
|
||||
disabled: React.PropTypes.bool,
|
||||
|
||||
// className for the panel
|
||||
className: React.PropTypes.string.isRequired,
|
||||
|
||||
|
@ -652,10 +649,9 @@ module.exports = React.createClass({
|
|||
const style = this.props.hidden ? { display: 'none' } : {};
|
||||
|
||||
const className = classNames(
|
||||
this.props.className, "mx_fadable",
|
||||
this.props.className,
|
||||
{
|
||||
"mx_MessagePanel_alwaysShowTimestamps": this.props.alwaysShowTimestamps,
|
||||
"mx_fadable_faded": this.props.disabled,
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue