mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-27 08:21:27 +00:00
separate external wallets
This commit is contained in:
parent
9aa7e75f01
commit
8158158d14
@ -15,6 +15,7 @@ const Wrapper = styled.div`
|
|||||||
|
|
||||||
const Label = styled.div`
|
const Label = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
padding: 10px 0;
|
||||||
color: ${colors.TEXT_SECONDARY};
|
color: ${colors.TEXT_SECONDARY};
|
||||||
align-items: center;
|
align-items: center;
|
||||||
`;
|
`;
|
||||||
@ -26,7 +27,7 @@ const Row = styled.div`
|
|||||||
|
|
||||||
const Content = styled.div`
|
const Content = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 20px;
|
margin: 20px 0;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -41,6 +42,10 @@ const CoinRow = styled.div`
|
|||||||
&:first-child {
|
&:first-child {
|
||||||
border-top: 1px solid ${colors.DIVIDER};
|
border-top: 1px solid ${colors.DIVIDER};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Left = styled.div`
|
const Left = styled.div`
|
||||||
@ -66,10 +71,10 @@ const LogoWrapper = styled.div`
|
|||||||
const CoinsSettings = (props: Props) => (
|
const CoinsSettings = (props: Props) => (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<Row>
|
<Row>
|
||||||
|
<Content>
|
||||||
<Label>
|
<Label>
|
||||||
<FormattedMessage {...l10nMessages.TR_VISIBLE_COINS} />
|
<FormattedMessage {...l10nMessages.TR_VISIBLE_COINS} />
|
||||||
</Label>
|
</Label>
|
||||||
<Content>
|
|
||||||
{props.networks
|
{props.networks
|
||||||
.filter(network => !network.isHidden)
|
.filter(network => !network.isHidden)
|
||||||
.map(network => (
|
.map(network => (
|
||||||
@ -90,6 +95,11 @@ const CoinsSettings = (props: Props) => (
|
|||||||
</Right>
|
</Right>
|
||||||
</CoinRow>
|
</CoinRow>
|
||||||
))}
|
))}
|
||||||
|
</Content>
|
||||||
|
<Content>
|
||||||
|
<Label>
|
||||||
|
<FormattedMessage {...l10nMessages.TR_VISIBLE_COINS_EXTERNAL} />
|
||||||
|
</Label>
|
||||||
{coins
|
{coins
|
||||||
.sort((a, b) => a.order - b.order)
|
.sort((a, b) => a.order - b.order)
|
||||||
.map(network => (
|
.map(network => (
|
||||||
|
@ -20,6 +20,10 @@ const definedMessages: Messages = defineMessages({
|
|||||||
id: 'TR_VISIBLE_COINS',
|
id: 'TR_VISIBLE_COINS',
|
||||||
defaultMessage: 'Visible coins',
|
defaultMessage: 'Visible coins',
|
||||||
},
|
},
|
||||||
|
TR_VISIBLE_COINS_EXTERNAL: {
|
||||||
|
id: 'TR_VISIBLE_COINS',
|
||||||
|
defaultMessage: 'Visible external coins',
|
||||||
|
},
|
||||||
TR_VISIBLE_COINS_EXPLAINED: {
|
TR_VISIBLE_COINS_EXPLAINED: {
|
||||||
id: 'TR_VISIBLE_COINS_EXPLAINED',
|
id: 'TR_VISIBLE_COINS_EXPLAINED',
|
||||||
defaultMessage: 'The changes are saved automatically as they are made',
|
defaultMessage: 'The changes are saved automatically as they are made',
|
||||||
|
Loading…
Reference in New Issue
Block a user