diff --git a/packages/neuron-ui/src/components/NetworkSetting/index.tsx b/packages/neuron-ui/src/components/NetworkSetting/index.tsx index d50225539c..e82447e235 100644 --- a/packages/neuron-ui/src/components/NetworkSetting/index.tsx +++ b/packages/neuron-ui/src/components/NetworkSetting/index.tsx @@ -99,35 +99,32 @@ const NetworkSetting = ({ chain = chainState, settings: { networks = [] } }: Sta itemClassName={styles.radioItem} options={showNetworks.map(network => ({ value: network.id, - label: - currentId === network.id && network.type === NetworkType.Light ? ( -
-

{`${network.name} (${network.remote})`}

+ label: ( +
+

{`${network.name} (${network.remote})`}

+
{t(getNetworkLabelI18nkey(network.chain))}
+
+ ), + suffix: ( +
+ {currentId === network.id && network.type === NetworkType.Light ? ( +
{t('settings.network.switch-network-type', { type: network.chain === LIGHT_CLIENT_MAINNET ? 'testnet' : 'mainnet', })} - +
} placement="top" showTriangle + className={styles.switch} > -
- {t(getNetworkLabelI18nkey(network.chain))} +
+
-
- ) : ( -
-

{`${network.name} (${network.remote})`}

-
{t(getNetworkLabelI18nkey(network.chain))}
-
- ), - suffix: ( -
+ ) : null} {network.readonly ? null : (