mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-23 06:21:06 +00:00
Style webusb button in left navigation panel
This commit is contained in:
parent
571522401e
commit
f412738daf
@ -14,7 +14,14 @@ import type { Props } from '../common';
|
|||||||
import AsideDivider from '../Divider';
|
import AsideDivider from '../Divider';
|
||||||
|
|
||||||
const Wrapper = styled.div``;
|
const Wrapper = styled.div``;
|
||||||
const ButtonWrapper = styled.div``;
|
const ButtonWrapper = styled.div`
|
||||||
|
margin-top: 10px;
|
||||||
|
padding: 0 10px;
|
||||||
|
display: flex;
|
||||||
|
`;
|
||||||
|
const StyledButton = styled(Button)`
|
||||||
|
flex: 1;
|
||||||
|
`;
|
||||||
|
|
||||||
type DeviceMenuItem = {
|
type DeviceMenuItem = {
|
||||||
type: string;
|
type: string;
|
||||||
@ -107,7 +114,7 @@ class DeviceMenu extends Component<Props> {
|
|||||||
/>
|
/>
|
||||||
<ButtonWrapper>
|
<ButtonWrapper>
|
||||||
{isWebUSB(transport) && (
|
{isWebUSB(transport) && (
|
||||||
<Button
|
<StyledButton
|
||||||
className="trezor-webusb-button"
|
className="trezor-webusb-button"
|
||||||
text="Check for devices"
|
text="Check for devices"
|
||||||
isWebUsb
|
isWebUsb
|
||||||
|
Loading…
Reference in New Issue
Block a user