1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +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="label">{ dev.instanceLabel }</span>
<span className="status">{ deviceStatus }</span> <span className="status">{ deviceStatus }</span>
</div> </div>
<div className="forget-button" onMouseDown={ (event) => {
event.stopPropagation();
event.preventDefault();
this.onDeviceMenuClick({ type: 'forget', label: ''}, dev);
} }> </div>
</div> </div>
); );
}); });
return ( return (
<section> <section>
{ currentDeviceMenu } { currentDeviceMenu }

View File

@ -196,6 +196,20 @@ aside {
font-size: 11px; font-size: 11px;
margin-right: 8px; 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 { .device-menu {