mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-10 15:12:48 +00:00
sort networks
This commit is contained in:
parent
cb89d0bbcf
commit
9a4edffa8c
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"networks": [
|
"networks": [
|
||||||
{
|
{
|
||||||
|
"order": 2,
|
||||||
"type": "ethereum",
|
"type": "ethereum",
|
||||||
"name": "Ethereum",
|
"name": "Ethereum",
|
||||||
"symbol": "ETH",
|
"symbol": "ETH",
|
||||||
@ -21,6 +22,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"order": 18,
|
||||||
"type": "ethereum",
|
"type": "ethereum",
|
||||||
"name": "Ethereum Classic",
|
"name": "Ethereum Classic",
|
||||||
"symbol": "ETC",
|
"symbol": "ETC",
|
||||||
@ -40,7 +42,8 @@
|
|||||||
"address": "https://gastracker.io/addr/"
|
"address": "https://gastracker.io/addr/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"order": 2,
|
||||||
"type": "ethereum",
|
"type": "ethereum",
|
||||||
"name": "Ethereum Ropsten",
|
"name": "Ethereum Ropsten",
|
||||||
"testnet": true,
|
"testnet": true,
|
||||||
@ -74,6 +77,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"order": 3,
|
||||||
"type": "ripple",
|
"type": "ripple",
|
||||||
"name": "Ripple",
|
"name": "Ripple",
|
||||||
"symbol": "XRP",
|
"symbol": "XRP",
|
||||||
@ -94,6 +98,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"order": 3,
|
||||||
"type": "ripple",
|
"type": "ripple",
|
||||||
"name": "Ripple Testnet",
|
"name": "Ripple Testnet",
|
||||||
"testnet": true,
|
"testnet": true,
|
||||||
|
@ -13,6 +13,7 @@ type NetworkFeeLevel = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type Network = {
|
export type Network = {
|
||||||
|
order: number,
|
||||||
type: string,
|
type: string,
|
||||||
name: string,
|
name: string,
|
||||||
testnet?: boolean,
|
testnet?: boolean,
|
||||||
|
@ -75,19 +75,21 @@ class CoinMenu extends PureComponent<Props> {
|
|||||||
const { config } = this.props.localStorage;
|
const { config } = this.props.localStorage;
|
||||||
return (
|
return (
|
||||||
<Wrapper data-test="Main__page__coin__menu">
|
<Wrapper data-test="Main__page__coin__menu">
|
||||||
{config.networks.map(item => (
|
{config.networks
|
||||||
<NavLink
|
.sort((a, b) => a.order - b.order)
|
||||||
key={item.shortcut}
|
.map(item => (
|
||||||
to={`${this.getBaseUrl()}/network/${item.shortcut}/account/0`}
|
<NavLink
|
||||||
>
|
key={item.shortcut}
|
||||||
<RowCoin
|
to={`${this.getBaseUrl()}/network/${item.shortcut}/account/0`}
|
||||||
network={{
|
>
|
||||||
name: item.name,
|
<RowCoin
|
||||||
shortcut: item.shortcut,
|
network={{
|
||||||
}}
|
name: item.name,
|
||||||
/>
|
shortcut: item.shortcut,
|
||||||
</NavLink>
|
}}
|
||||||
))}
|
/>
|
||||||
|
</NavLink>
|
||||||
|
))}
|
||||||
<Divider
|
<Divider
|
||||||
testId="Main__page__coin__menu__divider"
|
testId="Main__page__coin__menu__divider"
|
||||||
textLeft={<FormattedMessage {...l10nMessages.TR_OTHER_COINS} />}
|
textLeft={<FormattedMessage {...l10nMessages.TR_OTHER_COINS} />}
|
||||||
|
Loading…
Reference in New Issue
Block a user