lint
This commit is contained in:
parent
77618d30fd
commit
4f62fc16bd
1 changed files with 6 additions and 2 deletions
|
@ -255,11 +255,15 @@ function DevicesSection({devices, userId, loading}) {
|
||||||
let expandButton;
|
let expandButton;
|
||||||
if (expandSectionDevices.length) {
|
if (expandSectionDevices.length) {
|
||||||
if (isExpanded) {
|
if (isExpanded) {
|
||||||
expandButton = (<AccessibleButton className="mx_UserInfo_expand mx_linkButton" onClick={() => setExpanded(false)}>
|
expandButton = (<AccessibleButton className="mx_UserInfo_expand mx_linkButton"
|
||||||
|
onClick={() => setExpanded(false)}
|
||||||
|
>
|
||||||
<div>{expandHideCaption}</div>
|
<div>{expandHideCaption}</div>
|
||||||
</AccessibleButton>);
|
</AccessibleButton>);
|
||||||
} else {
|
} else {
|
||||||
expandButton = (<AccessibleButton className="mx_UserInfo_expand mx_linkButton" onClick={() => setExpanded(true)}>
|
expandButton = (<AccessibleButton className="mx_UserInfo_expand mx_linkButton"
|
||||||
|
onClick={() => setExpanded(true)}
|
||||||
|
>
|
||||||
<div className={expandIconClasses} />
|
<div className={expandIconClasses} />
|
||||||
<div>{expandCountCaption}</div>
|
<div>{expandCountCaption}</div>
|
||||||
</AccessibleButton>);
|
</AccessibleButton>);
|
||||||
|
|
Loading…
Reference in a new issue