1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-26 00:48:35 +00:00

forget button in "other devices"

This commit is contained in:
Szymon Lesisz 2018-05-11 15:37:00 +02:00
parent 9125fbcd61
commit 9c475e4005
2 changed files with 19 additions and 1 deletions

View File

@ -201,12 +201,16 @@ export class DeviceDropdown extends Component<Props> {
<span className="label">{ dev.instanceLabel }</span>
<span className="status">{ deviceStatus }</span>
</div>
<div className="forget-button" onMouseDown={ (event) => {
event.stopPropagation();
event.preventDefault();
this.onDeviceMenuClick({ type: 'forget', label: ''}, dev);
} }> </div>
</div>
);
});
return (
<section>
{ currentDeviceMenu }

View File

@ -196,6 +196,20 @@ aside {
font-size: 11px;
margin-right: 8px;
}
.forget-button {
color: @color_text_secondary;
.hover();
&:before {
.icomoon-eject;
position: relative;
font-size: 24px;
}
&:hover {
color: @color_text_primary;
}
}
}
.device-menu {