@transferwise/components 46.0.5 → 46.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/i18n/cs.json +2 -0
- package/build/i18n/de.json +2 -0
- package/build/i18n/es.json +2 -0
- package/build/i18n/fr.json +2 -0
- package/build/i18n/hu.json +2 -0
- package/build/i18n/id.json +2 -0
- package/build/i18n/it.json +2 -0
- package/build/i18n/ja.json +2 -0
- package/build/i18n/pl.json +2 -0
- package/build/i18n/pt.json +2 -0
- package/build/i18n/ro.json +2 -0
- package/build/i18n/ru.json +2 -0
- package/build/i18n/th.json +2 -0
- package/build/i18n/tr.json +2 -0
- package/build/i18n/uk.json +2 -0
- package/build/i18n/zh-CN.json +2 -0
- package/build/i18n/zh-HK.json +2 -0
- package/build/index.esm.js +46 -15
- package/build/index.esm.js.map +1 -1
- package/build/index.js +46 -15
- package/build/index.js.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/i18n/cs.json +2 -0
- package/src/i18n/de.json +2 -0
- package/src/i18n/es.json +2 -0
- package/src/i18n/fr.json +2 -0
- package/src/i18n/hu.json +2 -0
- package/src/i18n/id.json +2 -0
- package/src/i18n/it.json +2 -0
- package/src/i18n/ja.json +2 -0
- package/src/i18n/pl.json +2 -0
- package/src/i18n/pt.json +2 -0
- package/src/i18n/ro.json +2 -0
- package/src/i18n/ru.json +2 -0
- package/src/i18n/th.json +2 -0
- package/src/i18n/tr.json +2 -0
- package/src/i18n/uk.json +2 -0
- package/src/i18n/zh-CN.json +2 -0
- package/src/i18n/zh-HK.json +2 -0
- package/src/moneyInput/MoneyInput.js +16 -21
- package/src/moneyInput/MoneyInput.spec.js +16 -3
- package/src/moneyInput/MoneyInput.story.tsx +1 -1
- package/src/tooltip/__snapshots__/Tooltip.spec.tsx.snap +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/moneyInput/MoneyInput.js"],"names":[],"mappings":";;;;AA+DA;IACE,wBAcC;IAXC,mBAAkD;IAClD;;;;MASC;IAGH,uDAaC;IAED,+CAWE;IAEF,oCAIE;IAEF,kCAyBE;IAEF,qCAgBE;IAEF,yBAGE;IAFA,mCAA0B;IAI5B,0BAEE;IAEF;;;;MAME;IAEF,
|
|
1
|
+
{"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/moneyInput/MoneyInput.js"],"names":[],"mappings":";;;;AA+DA;IACE,wBAcC;IAXC,mBAAkD;IAClD;;;;MASC;IAGH,uDAaC;IAED,+CAWE;IAEF,oCAIE;IAEF,kCAyBE;IAEF,qCAgBE;IAEF,yBAGE;IAFA,mCAA0B;IAI5B,0BAEE;IAEF;;;;MAME;IAEF,0BAwBC;IAED,kBAsBC;IAED,yCAGE;IAEF,+BAKE;IAEF,+CAQE;IAEF,+BAAqE;IAErE,sCAuIC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.0.
|
|
3
|
+
"version": "46.0.7",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"merge-props": "^6.0.0",
|
|
121
121
|
"prop-types": "^15.7.2",
|
|
122
122
|
"react-merge-refs": "^1.1.0",
|
|
123
|
-
"react-popper": "^2.
|
|
123
|
+
"react-popper": "^2.3.0",
|
|
124
124
|
"react-required-if": "^1.0.3",
|
|
125
125
|
"react-transition-group": "^4.4.2",
|
|
126
126
|
"use-sync-external-store": "^1.2.0"
|
package/src/i18n/cs.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Vyčistit",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Zavřít",
|
|
6
6
|
"neptune.DateInput.day.label": "Den",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
7
8
|
"neptune.DateInput.month.label": "Měsíc",
|
|
8
9
|
"neptune.DateInput.year.label": "Rok",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "RRRR",
|
|
9
11
|
"neptune.DateLookup.day": "den",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Go to 20 year view",
|
|
11
13
|
"neptune.DateLookup.month": "měsíc",
|
package/src/i18n/de.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Zurücksetzen",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Schließen",
|
|
6
6
|
"neptune.DateInput.day.label": "Tag",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "TT",
|
|
7
8
|
"neptune.DateInput.month.label": "Monat",
|
|
8
9
|
"neptune.DateInput.year.label": "Jahr",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "JJJJ",
|
|
9
11
|
"neptune.DateLookup.day": "Tag",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Zur 20-Jahres-Ansicht",
|
|
11
13
|
"neptune.DateLookup.month": "Monat",
|
package/src/i18n/es.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Borrar",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Cerrar",
|
|
6
6
|
"neptune.DateInput.day.label": "Día",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
7
8
|
"neptune.DateInput.month.label": "Mes",
|
|
8
9
|
"neptune.DateInput.year.label": "Año",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "AAAA",
|
|
9
11
|
"neptune.DateLookup.day": "día",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Ir a vista de 20 años",
|
|
11
13
|
"neptune.DateLookup.month": "mes",
|
package/src/i18n/fr.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Effacer",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Fermer",
|
|
6
6
|
"neptune.DateInput.day.label": "Jour",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "JJ",
|
|
7
8
|
"neptune.DateInput.month.label": "Mois",
|
|
8
9
|
"neptune.DateInput.year.label": "Année",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "AAAA",
|
|
9
11
|
"neptune.DateLookup.day": "jour",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Accéder à la vue sur 20 ans",
|
|
11
13
|
"neptune.DateLookup.month": "mois",
|
package/src/i18n/hu.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Törlés",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Bezárás",
|
|
6
6
|
"neptune.DateInput.day.label": "Nap",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "NN",
|
|
7
8
|
"neptune.DateInput.month.label": "Hónap",
|
|
8
9
|
"neptune.DateInput.year.label": "Év",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "ÉÉÉÉ",
|
|
9
11
|
"neptune.DateLookup.day": "nap",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Ugrás a 20 éves nézetre",
|
|
11
13
|
"neptune.DateLookup.month": "hónap",
|
package/src/i18n/id.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Hapus",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Tutup",
|
|
6
6
|
"neptune.DateInput.day.label": "Hari",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "HH",
|
|
7
8
|
"neptune.DateInput.month.label": "Bulan",
|
|
8
9
|
"neptune.DateInput.year.label": "Tahun",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "TTTT",
|
|
9
11
|
"neptune.DateLookup.day": "hari",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Lihat tampilan 20 tahun",
|
|
11
13
|
"neptune.DateLookup.month": "bulan",
|
package/src/i18n/it.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Elimina",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Chiudi",
|
|
6
6
|
"neptune.DateInput.day.label": "Giorno",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "GG",
|
|
7
8
|
"neptune.DateInput.month.label": "Mese",
|
|
8
9
|
"neptune.DateInput.year.label": "Anno",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "AAAA",
|
|
9
11
|
"neptune.DateLookup.day": "giorno",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Vai alla vista su 20 anni",
|
|
11
13
|
"neptune.DateLookup.month": "mese",
|
package/src/i18n/ja.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "消去",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "閉じる",
|
|
6
6
|
"neptune.DateInput.day.label": "日",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "日",
|
|
7
8
|
"neptune.DateInput.month.label": "月",
|
|
8
9
|
"neptune.DateInput.year.label": "年",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "年(西暦)",
|
|
9
11
|
"neptune.DateLookup.day": "日",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "20年表示に移動する",
|
|
11
13
|
"neptune.DateLookup.month": "月",
|
package/src/i18n/pl.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Wyczyść",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Zamknij",
|
|
6
6
|
"neptune.DateInput.day.label": "Dzień",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
7
8
|
"neptune.DateInput.month.label": "Miesiąc",
|
|
8
9
|
"neptune.DateInput.year.label": "Rok",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "RRRR",
|
|
9
11
|
"neptune.DateLookup.day": "dzień",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Przejdź do widoku 20-letniego",
|
|
11
13
|
"neptune.DateLookup.month": "miesiąc",
|
package/src/i18n/pt.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Remover",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Fechar",
|
|
6
6
|
"neptune.DateInput.day.label": "Dia",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
7
8
|
"neptune.DateInput.month.label": "Mês",
|
|
8
9
|
"neptune.DateInput.year.label": "Ano",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "AAAA",
|
|
9
11
|
"neptune.DateLookup.day": "dia",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Acessar a visualização de 20 anos",
|
|
11
13
|
"neptune.DateLookup.month": "mês",
|
package/src/i18n/ro.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Elimină",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Închide",
|
|
6
6
|
"neptune.DateInput.day.label": "Zi",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "ZZ",
|
|
7
8
|
"neptune.DateInput.month.label": "Lună",
|
|
8
9
|
"neptune.DateInput.year.label": "An",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "AAAA",
|
|
9
11
|
"neptune.DateLookup.day": "zi",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Accesează vizualizarea pe 20 de ani",
|
|
11
13
|
"neptune.DateLookup.month": "lună",
|
package/src/i18n/ru.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Очистить",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Закрыть",
|
|
6
6
|
"neptune.DateInput.day.label": "День",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "ДД",
|
|
7
8
|
"neptune.DateInput.month.label": "Месяц",
|
|
8
9
|
"neptune.DateInput.year.label": "Год",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "ГГГГ",
|
|
9
11
|
"neptune.DateLookup.day": "день",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Перейти к обзору 20 лет",
|
|
11
13
|
"neptune.DateLookup.month": "месяц",
|
package/src/i18n/th.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "ชัดเจน",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "ปิด",
|
|
6
6
|
"neptune.DateInput.day.label": "วัน",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
7
8
|
"neptune.DateInput.month.label": "เดือน",
|
|
8
9
|
"neptune.DateInput.year.label": "ปี",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "YYYY",
|
|
9
11
|
"neptune.DateLookup.day": "วัน",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Go to 20 year view",
|
|
11
13
|
"neptune.DateLookup.month": "เดือน",
|
package/src/i18n/tr.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Sil",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Kapat",
|
|
6
6
|
"neptune.DateInput.day.label": "Gün",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "GG",
|
|
7
8
|
"neptune.DateInput.month.label": "Ay",
|
|
8
9
|
"neptune.DateInput.year.label": "Yıl",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "YYYY",
|
|
9
11
|
"neptune.DateLookup.day": "gün",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "20 yıl görünümüne git",
|
|
11
13
|
"neptune.DateLookup.month": "ay",
|
package/src/i18n/uk.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "Очистити",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "Закрити",
|
|
6
6
|
"neptune.DateInput.day.label": "День",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "ДД",
|
|
7
8
|
"neptune.DateInput.month.label": "Місяць",
|
|
8
9
|
"neptune.DateInput.year.label": "Рік",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "РРРР",
|
|
9
11
|
"neptune.DateLookup.day": "дня",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "Go to 20 year view",
|
|
11
13
|
"neptune.DateLookup.month": "місяць",
|
package/src/i18n/zh-CN.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "清除",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "关闭",
|
|
6
6
|
"neptune.DateInput.day.label": "日",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "DD",
|
|
7
8
|
"neptune.DateInput.month.label": "月",
|
|
8
9
|
"neptune.DateInput.year.label": "年",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "YYYY",
|
|
9
11
|
"neptune.DateLookup.day": "日",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "转到 20 年视图",
|
|
11
13
|
"neptune.DateLookup.month": "月",
|
package/src/i18n/zh-HK.json
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
"neptune.ClearButton.ariaLabel": "清除",
|
|
5
5
|
"neptune.CloseButton.ariaLabel": "關閉",
|
|
6
6
|
"neptune.DateInput.day.label": "日",
|
|
7
|
+
"neptune.DateInput.day.placeholder": "日",
|
|
7
8
|
"neptune.DateInput.month.label": "月",
|
|
8
9
|
"neptune.DateInput.year.label": "年",
|
|
10
|
+
"neptune.DateInput.year.placeholder": "年",
|
|
9
11
|
"neptune.DateLookup.day": "日",
|
|
10
12
|
"neptune.DateLookup.goTo20YearView": "切換至20年視圖",
|
|
11
13
|
"neptune.DateLookup.month": "月",
|
|
@@ -196,6 +196,7 @@ class MoneyInput extends Component {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
|
+
|
|
199
200
|
return formattedOptions;
|
|
200
201
|
}
|
|
201
202
|
|
|
@@ -252,35 +253,29 @@ class MoneyInput extends Component {
|
|
|
252
253
|
this.props;
|
|
253
254
|
const selectOptions = this.getSelectOptions();
|
|
254
255
|
|
|
255
|
-
const
|
|
256
|
+
const hasSingleCurrency = () => {
|
|
256
257
|
if (selectOptions.length !== 0) {
|
|
257
258
|
const firstItem = selectOptions[0];
|
|
258
259
|
|
|
259
|
-
if (
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
currency: firstItem.options[0].value.currency,
|
|
270
|
-
};
|
|
260
|
+
if (selectOptions.length === 1) {
|
|
261
|
+
if (firstItem.type === 'option') {
|
|
262
|
+
return firstItem.value.currency === selectedCurrency.currency;
|
|
263
|
+
}
|
|
264
|
+
if (firstItem.type === 'group') {
|
|
265
|
+
return (
|
|
266
|
+
firstItem.options.length === 1 &&
|
|
267
|
+
!(this.props.onCustomAction && this.props.customActionLabel)
|
|
268
|
+
);
|
|
269
|
+
}
|
|
271
270
|
}
|
|
271
|
+
} else if (selectedCurrency?.currency) {
|
|
272
|
+
return true;
|
|
272
273
|
}
|
|
273
274
|
|
|
274
|
-
return
|
|
275
|
+
return false;
|
|
275
276
|
};
|
|
276
277
|
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
const isFixedCurrency =
|
|
280
|
-
!this.state.searchQuery &&
|
|
281
|
-
((firstSelectItem?.hasOneCurrency &&
|
|
282
|
-
firstSelectItem?.currency === selectedCurrency.currency) ||
|
|
283
|
-
!onCurrencyChange);
|
|
278
|
+
const isFixedCurrency = (!this.state.searchQuery && hasSingleCurrency()) || !onCurrencyChange;
|
|
284
279
|
|
|
285
280
|
const disabled = !this.props.onAmountChange;
|
|
286
281
|
return (
|
|
@@ -31,6 +31,8 @@ describe('Money Input', () => {
|
|
|
31
31
|
|
|
32
32
|
let currencies;
|
|
33
33
|
|
|
34
|
+
const EEK = { value: 'EEK', currency: 'EEK' };
|
|
35
|
+
|
|
34
36
|
beforeEach(() => {
|
|
35
37
|
currencies = [
|
|
36
38
|
{
|
|
@@ -526,14 +528,27 @@ describe('Money Input', () => {
|
|
|
526
528
|
expect(passedInAddon().type()).toBe('span');
|
|
527
529
|
});
|
|
528
530
|
|
|
531
|
+
it('shows fixed currency view if currencies array is empty but select currency exists', () => {
|
|
532
|
+
expect(fixedCurrencyDisplay()).toHaveLength(0);
|
|
533
|
+
|
|
534
|
+
component.setProps({
|
|
535
|
+
currencies: [],
|
|
536
|
+
selectedCurrency: EEK,
|
|
537
|
+
});
|
|
538
|
+
|
|
539
|
+
expect(currencySelect()).toHaveLength(0);
|
|
540
|
+
expect(fixedCurrencyDisplay()).toHaveLength(1);
|
|
541
|
+
expect(component.find(Title).props().children).toBe('EEK');
|
|
542
|
+
});
|
|
543
|
+
|
|
529
544
|
it('shows fixed currency view if only one currency available and selected', () => {
|
|
530
545
|
expect(fixedCurrencyDisplay()).toHaveLength(0);
|
|
531
546
|
|
|
532
|
-
const EEK = { value: 'EEK', currency: 'EEK' };
|
|
533
547
|
component.setProps({
|
|
534
548
|
currencies: [EEK],
|
|
535
549
|
selectedCurrency: EEK,
|
|
536
550
|
});
|
|
551
|
+
|
|
537
552
|
expect(currencySelect()).toHaveLength(0);
|
|
538
553
|
expect(fixedCurrencyDisplay()).toHaveLength(1);
|
|
539
554
|
expect(component.find(Title).props().children).toBe('EEK');
|
|
@@ -546,7 +561,6 @@ describe('Money Input', () => {
|
|
|
546
561
|
});
|
|
547
562
|
|
|
548
563
|
it('does not shows fixed currency keyline and flag if small input', () => {
|
|
549
|
-
const EEK = { value: 'EEK', currency: 'EEK' };
|
|
550
564
|
component.setProps({
|
|
551
565
|
currencies: [EEK],
|
|
552
566
|
selectedCurrency: EEK,
|
|
@@ -563,7 +577,6 @@ describe('Money Input', () => {
|
|
|
563
577
|
});
|
|
564
578
|
|
|
565
579
|
it('amount input will be disabled when there is no onAmountChange prop', () => {
|
|
566
|
-
const EEK = { value: 'EEK', currency: 'EEK' };
|
|
567
580
|
component.setProps({
|
|
568
581
|
currencies: [EEK],
|
|
569
582
|
selectedCurrency: EEK,
|