1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

UX Multichain: updated assets to tokens in home page (#19144)

* updated assets to tokens in home page

* lint fix

* lint fix

* updated tests and spec files

* lint fix
This commit is contained in:
Nidhi Kumari 2023-05-17 08:30:47 +05:30 committed by GitHub
parent e3eec3a43d
commit ac6fb3bb09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 10 additions and 67 deletions

View File

@ -598,7 +598,7 @@ const state = {
nextNonce: 71,
connectedStatusPopoverHasBeenShown: true,
swapsWelcomeMessageHasBeenShown: true,
defaultHomeActiveTabName: 'Assets',
defaultHomeActiveTabName: 'Tokens',
providerConfig: {
type: 'goerli',
ticker: 'ETH',

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Asset-Optionen"
},
"assets": {
"message": "Vermögenswerte"
},
"attemptSendingAssets": {
"message": "Wenn Sie versuchen, Assets direkt von einem Netzwerk in ein anderes zu senden, kann dies zu einem dauerhaften Asset-Verlust führen. Verwenden Sie unbedingt eine Bridge."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Επιλογές περιουσιακών στοιχείων"
},
"assets": {
"message": "Περιουσιακά στοιχεία"
},
"attemptSendingAssets": {
"message": "Εάν επιχειρήσετε να στείλετε περιουσιακά στοιχεία απευθείας από ένα δίκτυο σε ένα άλλο, αυτό ενδέχεται να οδηγήσει σε μόνιμη απώλεια περιουσιακών στοιχείων. Βεβαιωθείτε ότι χρησιμοποιείτε μια διασύνδεση."
},

View File

@ -441,9 +441,6 @@
"assetOptions": {
"message": "Asset options"
},
"assets": {
"message": "Assets"
},
"attemptSendingAssets": {
"message": "If you attempt to send assets directly from one network to another, this may result in permanent asset loss. Make sure to use a bridge."
},
@ -4569,6 +4566,9 @@
"tokenSymbol": {
"message": "Token symbol"
},
"tokens": {
"message": "Tokens"
},
"tokensFoundTitle": {
"message": "$1 new tokens found",
"description": "$1 is the number of new tokens detected"

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Opciones de activos"
},
"assets": {
"message": "Activos"
},
"attemptSendingAssets": {
"message": "Si intenta enviar activos directamente de una red a otra, esto puede provocar la pérdida permanente de activos. Asegúrese de utilizar un puente."
},

View File

@ -229,9 +229,6 @@
"assetOptions": {
"message": "Opciones de activos"
},
"assets": {
"message": "Activos"
},
"attemptingConnect": {
"message": "Intentando una conexión a la cadena de bloques."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Options dactifs"
},
"assets": {
"message": "Actifs"
},
"attemptSendingAssets": {
"message": "Si vous essayez denvoyer des actifs directement dun réseau à un autre, une perte permanente des actifs pourrait en résulter. Assurez-vous dutiliser une passerelle."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "एसेट विकल्प"
},
"assets": {
"message": "परिसंपत्तियां"
},
"attemptSendingAssets": {
"message": "यदि आप ऐसेट्स को सीधे एक नेटवर्क से दूसरे नेटवर्क पर भेजने का प्रयास करते हैं, तो इसके परिणामस्वरूप स्थायी ऐसेट्स का नुकसान हो सकता है। ब्रिज का उपयोग करना सुनिश्चित करें।"
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Opsi aset"
},
"assets": {
"message": "Aset"
},
"attemptSendingAssets": {
"message": "Jika Anda mencoba untuk mengirim aset secara langsung dari satu jaringan ke jaringan lain, aset Anda berpotensi hilang secara permanen. Pastikan untuk menggunakan penghubung."
},

View File

@ -315,9 +315,6 @@
"assetOptions": {
"message": "Opzioni asset"
},
"assets": {
"message": "Patrimonio"
},
"attemptSendingAssets": {
"message": "Se si tenta di inviare risorse direttamente da una rete all'altra, ciò potrebbe comportare una perdita permanente della risorca coinvolta. Assicurati di usare un bridge."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "アセットのオプション"
},
"assets": {
"message": "アセット"
},
"attemptSendingAssets": {
"message": "1 つのネットワークから別のネットワークに直接アセットを送ろうとすると、アセットが永久に失われる可能性があります。必ずブリッジを使用してください。"
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "자산 옵션"
},
"assets": {
"message": "자산"
},
"attemptSendingAssets": {
"message": "한 네트워크에서 다른 네트워크로 자산을 직접 전송하면 자산이 영구적으로 손실될 수 있습니다. 반드시 브릿지를 이용하세요."
},

View File

@ -140,9 +140,6 @@
"assetOptions": {
"message": "Mga opsyon sa asset"
},
"assets": {
"message": "Mga Asset"
},
"attemptingConnect": {
"message": "Sinusubukang kumonekta sa blockchain."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Opções do ativo"
},
"assets": {
"message": "Ativos"
},
"attemptSendingAssets": {
"message": "Se você tentar enviar ativos diretamente de uma rede para outra, isso poderá resultar na perda permanente deles. Certifique-se de usar uma ponte."
},

View File

@ -229,9 +229,6 @@
"assetOptions": {
"message": "Opções do ativo"
},
"assets": {
"message": "Ativos"
},
"attemptingConnect": {
"message": "Tentando conexão com o blockchain."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Параметры актива"
},
"assets": {
"message": "Активы"
},
"attemptSendingAssets": {
"message": "Попытка отправки активов напрямую из одной сети в другую может привести к необратимой потере активов. Следует использовать мост."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Mga opsyon ng asset"
},
"assets": {
"message": "Mga Asset"
},
"attemptSendingAssets": {
"message": "Kung tatangkain mong magpadala ng mga asset nang direkta mula sa isang network papunta sa isa pa, maaari itong magresulta sa permanenteng pagkawala ng asset. Siguraduhing gumamit ng tulay."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Varlık seçenekleri"
},
"assets": {
"message": "Varlıklar"
},
"attemptSendingAssets": {
"message": "Varlıkları doğrudan bir ağdan diğerine göndermeye çalışırsanız bu durum kalıcı varlık kaybına neden olabilir. Bir köprü kullandığınızdan emin olun."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "Tùy chọn tài sản"
},
"assets": {
"message": "Tài sản"
},
"attemptSendingAssets": {
"message": "Nếu bạn cố gắng gửi tài sản trực tiếp từ mạng này sang mạng khác, bạn có thể bị mất tài sản vĩnh viễn. Hãy nhớ sử dụng cầu nối."
},

View File

@ -398,9 +398,6 @@
"assetOptions": {
"message": "资产选项"
},
"assets": {
"message": "资产"
},
"attemptSendingAssets": {
"message": "如果您试图将资产从一个网络直接发送到另一个网络,这可能会导致永久的资产损失。必须使用桥来进行。"
},

View File

@ -139,9 +139,6 @@
"assetOptions": {
"message": "資產選項"
},
"assets": {
"message": "資產"
},
"attemptingConnect": {
"message": "正在嘗試連結區塊鏈。"
},

View File

@ -430,7 +430,7 @@ describe('MetaMask', function () {
it('checks balance', async function () {
await driver.clickElement({
text: 'Assets',
text: 'Tokens',
tag: 'button',
});

View File

@ -57,7 +57,7 @@ describe('Hide token', function () {
let assets = await driver.findElements('.asset-list-item');
assert.equal(assets.length, 2);
await driver.clickElement({ text: 'Assets', tag: 'button' });
await driver.clickElement({ text: 'Tokens', tag: 'button' });
await driver.clickElement({ text: 'TST', tag: 'span' });

View File

@ -44,7 +44,7 @@ describe('Create token, approve token and approve token without gas', function (
// imports custom token from extension
await driver.switchToWindow(extension);
await driver.clickElement(`[data-testid="home__asset-tab"]`);
await driver.clickElement({ tag: 'button', text: 'Assets' });
await driver.clickElement({ tag: 'button', text: 'Tokens' });
await driver.clickElement({ text: 'import tokens', tag: 'a' });
await driver.clickElement({
@ -68,7 +68,7 @@ describe('Create token, approve token and approve token without gas', function (
// renders balance for newly created token
await driver.clickElement('.app-header__logo-container');
await driver.clickElement({ tag: 'button', text: 'Assets' });
await driver.clickElement({ tag: 'button', text: 'Tokens' });
const asset = await driver.waitForSelector({
css: '.asset-list-item__token-value',
text: '10',

View File

@ -812,8 +812,8 @@ export default class Home extends PureComponent {
activeClassName="home__tab--active"
className="home__tab"
data-testid="home__asset-tab"
name={this.context.t('assets')}
tabKey="assets"
name={this.context.t('tokens')}
tabKey="tokens"
>
{process.env.MULTICHAIN ? (
<Box marginTop={2}>