mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-10 15:12:48 +00:00
add settings to the device menu
This commit is contained in:
parent
716cab44f7
commit
de1c7740cb
@ -2,8 +2,10 @@ import React, { PureComponent } from 'react';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import Icon from 'components/Icon';
|
import Icon from 'components/Icon';
|
||||||
|
import Link from 'components/Link';
|
||||||
import DeviceIcon from 'components/images/DeviceIcon';
|
import DeviceIcon from 'components/images/DeviceIcon';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
import { getPattern } from 'support/routes';
|
||||||
|
|
||||||
import icons from 'config/icons';
|
import icons from 'config/icons';
|
||||||
import colors from 'config/colors';
|
import colors from 'config/colors';
|
||||||
@ -29,6 +31,12 @@ const Item = styled.div`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const Divider = styled.div`
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
background: ${colors.DIVIDER};
|
||||||
|
`;
|
||||||
|
|
||||||
const Label = styled.div`
|
const Label = styled.div`
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
`;
|
`;
|
||||||
@ -99,6 +107,16 @@ class MenuItems extends PureComponent {
|
|||||||
<FormattedMessage {...l10nCommonMessages.TR_FORGET_DEVICE} />
|
<FormattedMessage {...l10nCommonMessages.TR_FORGET_DEVICE} />
|
||||||
</Label>
|
</Label>
|
||||||
</Item>
|
</Item>
|
||||||
|
<Divider />
|
||||||
|
<Link to={getPattern('wallet-settings')}>
|
||||||
|
<Item>
|
||||||
|
<Icon icon={icons.COG} size={25} color={colors.TEXT_SECONDARY} />
|
||||||
|
<Label>
|
||||||
|
<FormattedMessage {...l10nCommonMessages.TR_APPLICATION_SETTINGS} />
|
||||||
|
</Label>
|
||||||
|
</Item>
|
||||||
|
</Link>
|
||||||
|
<Divider />
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user