You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-16 22:01:54 +03:00
Dramatically simplify use of mx_fadable
by applying it to parent elements of things that need to be faded.
This commit is contained in:
@ -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,
|
||||
},
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user