diff --git a/src/components/operations/Operation.js b/src/components/operations/Operation.js index 80eed7557..b74a36ad7 100644 --- a/src/components/operations/Operation.js +++ b/src/components/operations/Operation.js @@ -18,6 +18,7 @@ import Offer from './Offer' import PathPayment from './PathPayment' import Payment from './Payment' import SetOptions from './SetOptions' +import Unrecognized from './Unrecognized' const opTypeComponentMap = { account_merge: AccountMerge, @@ -47,7 +48,7 @@ const opTypeComponentMap = { const opTypes = Object.keys(opTypeComponentMap) const SubOperation = ({op}) => { - const SubOpComponent = opTypeComponentMap[op.type] + const SubOpComponent = opTypeComponentMap[op.type] || Unrecognized return } diff --git a/src/components/operations/Unrecognized.js b/src/components/operations/Unrecognized.js new file mode 100644 index 000000000..c47c26a6e --- /dev/null +++ b/src/components/operations/Unrecognized.js @@ -0,0 +1,11 @@ +import React from 'react' +import {FormattedMessage} from 'react-intl' + +const Unrecognized = ({type}) => + +export default Unrecognized diff --git a/src/languages/en.json b/src/languages/en.json index a5b780bee..b04909600 100644 --- a/src/languages/en.json +++ b/src/languages/en.json @@ -134,6 +134,7 @@ "operation.trust": "Trust {trustee} issuing {assetCode}", "operation.trust.allow": " [authorize: {authorize}, trustor: {trustor}]", "operation.trust.change": " with limit {limit}", + "operation.unrecognized": "Operation {type}", "optional": "Optional", "order.amount": "Amount", diff --git a/src/languages/ru.json b/src/languages/ru.json index ad781010a..b8bbd3146 100644 --- a/src/languages/ru.json +++ b/src/languages/ru.json @@ -98,6 +98,7 @@ "operation.trust": "Доверие {trustee} выпускающему {assetCode}", "operation.trust.allow": " [authorize: {authorize}, trustor: {trustor}]", "operation.trust.change": " с лимитом {limit}", + "operation.unregoznied": "Операция {type}", "optional": "Необязательно", "order.amount": "Сумма", diff --git a/src/languages/vi.json b/src/languages/vi.json index 72effb971..421fc3e7a 100644 --- a/src/languages/vi.json +++ b/src/languages/vi.json @@ -97,6 +97,7 @@ "operation.trust": "Tin tưởng {trustee} phát hành {assetCode}", "operation.trust.allow": " [authorize: {authorize}, trustor: {trustor}]", "operation.trust.change": " với giới hạn {limit}", + "operation.unregoznied": "Hoạt động {type}", "optional": "Không bắt buộc", "order.amount": "Số tiền", diff --git a/src/languages/zh.json b/src/languages/zh.json index 300356ed0..fa6ade824 100644 --- a/src/languages/zh.json +++ b/src/languages/zh.json @@ -130,6 +130,7 @@ "operation.trust": "信任 {trustee} 发行 {assetCode}", "operation.trust.allow": " [authorize: {authorize}, trustor: {trustor}]", "operation.trust.change": "至限额 {limit}", + "operation.unregoznied": "操作 {type}", "optional": "可选", "order.amount": "数量",