remove unneeded params (as we're going to change their meaning)
This commit is contained in:
parent
dae509d0eb
commit
35fc5307b6
1 changed files with 5 additions and 7 deletions
|
@ -164,15 +164,13 @@ const LoggedInView = React.createClass({
|
||||||
};
|
};
|
||||||
const collapseConfig = {
|
const collapseConfig = {
|
||||||
toggleSize: 260 - 50,
|
toggleSize: 260 - 50,
|
||||||
onCollapsed: (collapsed, item) => {
|
onCollapsed: (collapsed) => {
|
||||||
if (item.classList.contains("mx_LeftPanel_container")) {
|
this.setState({collapseLhs: collapsed});
|
||||||
this.setState({collapseLhs: collapsed});
|
if (collapsed) {
|
||||||
if (collapsed) {
|
window.localStorage.setItem("mx_lhs_size", '0');
|
||||||
window.localStorage.setItem("mx_lhs_size", '0');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onResized: (size, item) => {
|
onResized: (size) => {
|
||||||
window.localStorage.setItem("mx_lhs_size", '' + size);
|
window.localStorage.setItem("mx_lhs_size", '' + size);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue