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

Update header on Send page to be more accurate (#11895)

Change "Add Recipient" to "Send to".
This commit is contained in:
Elliot Winkler 2021-08-20 09:44:41 -06:00 committed by GitHub
parent ac9660d573
commit 0d63aa0402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
47 changed files with 11 additions and 140 deletions

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "አውታረ መረብ አክል"
},
"addRecipient": {
"message": "ተቀባይ አክል"
},
"addSuggestedTokens": {
"message": "የተጠቆሙ ተለዋጭ ስሞችን አክል"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "أضف شبكة"
},
"addRecipient": {
"message": "إضافة مستلم"
},
"addSuggestedTokens": {
"message": "أضف العملات الرمزية المقترحة"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Добавяне на мрежа"
},
"addRecipient": {
"message": "Добавете получател"
},
"addSuggestedTokens": {
"message": "Добавете препоръчани жетони"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "নেটওয়ার্ক যোগ করুন"
},
"addRecipient": {
"message": "প্রাপক যোগ করুন"
},
"addSuggestedTokens": {
"message": "প্রস্তাবিত টোকেনগুলি যোগ করুন"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Afegir Xarxa"
},
"addRecipient": {
"message": "Afegeix un recipient"
},
"addSuggestedTokens": {
"message": "Afegir Fitxes Suggerides"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Tilføj netværk"
},
"addRecipient": {
"message": "Tilføj modtager"
},
"addSuggestedTokens": {
"message": "Tilføj foreslåede tokens"
},

View File

@ -35,9 +35,6 @@
"addNetwork": {
"message": "Netzwerk hinzufügen"
},
"addRecipient": {
"message": "Empfänger hinzufügen"
},
"addSuggestedTokens": {
"message": "Vorgeschlagene Token hinzufügen"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Προσθήκη Δικτύου"
},
"addRecipient": {
"message": "Προσθήκη Παραλήπτη"
},
"addSuggestedTokens": {
"message": "Προσθέστε τα Προτεινόμενα Tokens"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Add Network"
},
"addRecipient": {
"message": "Add Recipient"
},
"addSuggestedTokens": {
"message": "Add Suggested Tokens"
},
@ -1897,6 +1894,9 @@
"message": "Send $1",
"description": "Symbol of the specified token"
},
"sendTo": {
"message": "Send to"
},
"sendTokens": {
"message": "Send Tokens"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Agregar red"
},
"addRecipient": {
"message": "Agregar destinatario"
},
"addSuggestedTokens": {
"message": "Agregar tokens sugeridos"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Agregar red"
},
"addRecipient": {
"message": "Agregar destinatario"
},
"addSuggestedTokens": {
"message": "Agregar tokens sugeridos"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Lisage võrk"
},
"addRecipient": {
"message": "Lisa saaja"
},
"addSuggestedTokens": {
"message": "Lisa soovitatud lube"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "اضافه شبکه"
},
"addRecipient": {
"message": "اضافه کردن دریافت کننده"
},
"addSuggestedTokens": {
"message": "اضافه رمزیاب های پیشنهاد شده"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Lisää verkko"
},
"addRecipient": {
"message": "Lisää vastaanottaja"
},
"addSuggestedTokens": {
"message": "Lisää ehdotetut käyttötunnukset"
},

View File

@ -35,9 +35,6 @@
"addNetwork": {
"message": "Magdagdag ng Network"
},
"addRecipient": {
"message": "Magdagdag ng Recipient"
},
"addSuggestedTokens": {
"message": "Magdagdag ng Mga Iminungkahing Token"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Ajouter un réseau"
},
"addRecipient": {
"message": "Ajouter destinataire"
},
"addSuggestedTokens": {
"message": "Ajouter les jetons suggérés"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "הוסף/י רשת"
},
"addRecipient": {
"message": "הוסף נמען"
},
"addSuggestedTokens": {
"message": "הוסף/י אסימונים מוצעים"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "नेटवर्क जोड़ें"
},
"addRecipient": {
"message": "प्राप्तकर्ता को जोड़ें"
},
"addSuggestedTokens": {
"message": "सुझाए गए टोकन जोड़ें"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Dodaj mrežu"
},
"addRecipient": {
"message": "Dodaj primatelja"
},
"addSuggestedTokens": {
"message": "Dodaj predložene tokene"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Hálózat hozzáadása"
},
"addRecipient": {
"message": "Címzett hozzáadása"
},
"addSuggestedTokens": {
"message": "Javasolt tokenek hozzáadása"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Tambahkan Jaringan"
},
"addRecipient": {
"message": "Tambahkan Penerima"
},
"addSuggestedTokens": {
"message": "Tambahkan Token yang Disarankan"
},

View File

@ -52,9 +52,6 @@
"addNetwork": {
"message": "Aggiungi Rete"
},
"addRecipient": {
"message": "Aggiungi destinatario"
},
"addSuggestedTokens": {
"message": "Aggiungi Token Suggeriti"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "ネットワークの追加"
},
"addRecipient": {
"message": "受信者の追加"
},
"addSuggestedTokens": {
"message": "推奨されたトークンの追加"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "ನೆಟ್‌ವರ್ಕ್ ಸೇರಿಸಿ"
},
"addRecipient": {
"message": "ಸ್ವೀಕೃತಿದಾರರನ್ನು ಸೇರಿಸಿ"
},
"addSuggestedTokens": {
"message": "ಸೂಚಿಸಲಾದ ಟೋಕನ್‌ಗಳನ್ನು ಸೇರಿಸಿ"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "네트워크 추가"
},
"addRecipient": {
"message": "수신인 추가"
},
"addSuggestedTokens": {
"message": "추천 토큰 추가"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Pridėti tinklą"
},
"addRecipient": {
"message": "Pridėti gavėją"
},
"addSuggestedTokens": {
"message": "Pridėti siūlomų žetonų"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Pievienot tīklu"
},
"addRecipient": {
"message": "Pievienot saņēmēju"
},
"addSuggestedTokens": {
"message": "Pievienot ieteiktos marķierus"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Tambah Rangkaian"
},
"addRecipient": {
"message": "Tambah Penerima"
},
"addSuggestedTokens": {
"message": "Tambah Token yang Disyorkan"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Legg til nettverk"
},
"addRecipient": {
"message": "Legg til mottaker "
},
"addSuggestedTokens": {
"message": "Legg til foreslåtte tokener "
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Magdagdag ng Network"
},
"addRecipient": {
"message": "Magdagdag ng Recipient"
},
"addSuggestedTokens": {
"message": "Magdagdag ng Mga Iminumungkahing Token"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Dodaj sieć"
},
"addRecipient": {
"message": "Dodaj odbiorcę"
},
"addSuggestedTokens": {
"message": "Dodaj sugerowane tokeny."
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Adicionar rede"
},
"addRecipient": {
"message": "Adicionar destinatário"
},
"addSuggestedTokens": {
"message": "Adicionar tokens sugeridos"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Adăugați rețea"
},
"addRecipient": {
"message": "Adăugați destinatarul"
},
"addSuggestedTokens": {
"message": "Adăugați indicativele sugerate"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Добавить сеть"
},
"addRecipient": {
"message": "Добавить получателя"
},
"addSuggestedTokens": {
"message": "Добавить предложенные токены"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Pridať sieť"
},
"addRecipient": {
"message": "Pridať príjemcu"
},
"addSuggestedTokens": {
"message": "Pridať navrhované tokeny"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Dodaj omrežje"
},
"addRecipient": {
"message": "Dodaj prejemnika"
},
"addSuggestedTokens": {
"message": "Dodaj priporočene žetone"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Dodajte mrežu"
},
"addRecipient": {
"message": "Dodaj primaoca"
},
"addSuggestedTokens": {
"message": "Dodajte sugerisane tokene"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Lägg till nätverk"
},
"addRecipient": {
"message": "Lägg till mottagare"
},
"addSuggestedTokens": {
"message": "Lägg till föreslagna tokens"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Ongeza Mtandao"
},
"addRecipient": {
"message": "Ongeza Mpokeaji"
},
"addSuggestedTokens": {
"message": "Ongeza Vianzio Vilivyopendekezwa"
},

View File

@ -52,9 +52,6 @@
"addNetwork": {
"message": "Magdagdag ng Network"
},
"addRecipient": {
"message": "Magdagdag ng Recipient"
},
"addSuggestedTokens": {
"message": "Magdagdag ng Mga Iminumungkahing Token"
},

View File

@ -38,9 +38,6 @@
"addNetwork": {
"message": "Додати мережу"
},
"addRecipient": {
"message": "Додати отримувача"
},
"addSuggestedTokens": {
"message": "Додати рекомендовані токени"
},

View File

@ -79,9 +79,6 @@
"addNetwork": {
"message": "Thêm mạng"
},
"addRecipient": {
"message": "Thêm người nhận"
},
"addSuggestedTokens": {
"message": "Thêm token được đề xuất"
},

View File

@ -52,9 +52,6 @@
"addNetwork": {
"message": "添加网络"
},
"addRecipient": {
"message": "添加接收方"
},
"addSuggestedTokens": {
"message": "添加推荐代币"
},

View File

@ -41,9 +41,6 @@
"addNetwork": {
"message": "新增網路"
},
"addRecipient": {
"message": "新增接收人"
},
"addSuggestedTokens": {
"message": "加入建議的代幣"
},

View File

@ -28,7 +28,7 @@ export default function SendHeader() {
let title = asset.type === ASSET_TYPES.NATIVE ? t('send') : t('sendTokens');
if (stage === SEND_STAGES.ADD_RECIPIENT || stage === SEND_STAGES.INACTIVE) {
title = t('addRecipient');
title = t('sendTo');
} else if (stage === SEND_STAGES.EDIT) {
title = t('edit');
}

View File

@ -21,7 +21,7 @@ jest.mock('react-router-dom', () => {
describe('SendHeader Component', () => {
describe('Title', () => {
it('should render "Add Recipient" for INACTIVE or ADD_RECIPIENT stages', () => {
it('should render "Send to" for INACTIVE or ADD_RECIPIENT stages', () => {
const { getByText, rerender } = renderWithProvider(
<SendHeader />,
configureMockStore(middleware)({
@ -30,7 +30,7 @@ describe('SendHeader Component', () => {
history: { mostRecentOverviewPage: 'activity' },
}),
);
expect(getByText('Add Recipient')).toBeTruthy();
expect(getByText('Send to')).toBeTruthy();
rerender(
<SendHeader />,
configureMockStore(middleware)({
@ -39,7 +39,7 @@ describe('SendHeader Component', () => {
history: { mostRecentOverviewPage: 'activity' },
}),
);
expect(getByText('Add Recipient')).toBeTruthy();
expect(getByText('Send to')).toBeTruthy();
});
it('should render "Send" for DRAFT stage when asset type is NATIVE', () => {

View File

@ -124,11 +124,11 @@ describe('Send Page', () => {
});
});
describe('Add Recipient Flow', () => {
it('should render the header with Add Recipient displayed', () => {
describe('Send Flow', () => {
it('should render the header with Send to displayed', () => {
const store = configureMockStore(middleware)(baseStore);
const { getByText } = renderWithProvider(<Send />, store);
expect(getByText('Add Recipient')).toBeTruthy();
expect(getByText('Send to')).toBeTruthy();
});
it('should render the EnsInput field', () => {
@ -146,7 +146,7 @@ describe('Send Page', () => {
});
});
describe('Send and Edit Flow', () => {
describe('Send and Edit Flow (draft)', () => {
it('should render the header with Send displayed', () => {
const store = configureMockStore(middleware)({
...baseStore,