From 88cb1246bc74a4225c3681025eefab05f164df31 Mon Sep 17 00:00:00 2001 From: yushi Date: Fri, 8 Nov 2024 16:43:12 +0800 Subject: [PATCH 1/5] Trezor wallet governance support --- .../TransactionFailed/TransactionFailed.tsx | 9 ++- .../GovernanceTransactionFailedPage.tsx | 2 +- .../api/ada/transactions/shelley/trezorTx.js | 40 ++++++++++- .../app/domain/TrezorLocalizedError.js | 6 ++ .../app/i18n/locales/en-US.json | 1 + .../ada/AdaDelegationTransactionStore.js | 70 +++++++++++-------- .../app/stores/stateless/sidebarCategories.js | 2 +- .../chrome/manifest-mv2.template.js | 2 +- .../chrome/manifest.template.js | 2 +- packages/yoroi-extension/package.json | 2 +- 10 files changed, 97 insertions(+), 39 deletions(-) diff --git a/packages/yoroi-extension/app/UI/components/TransactionFailed/TransactionFailed.tsx b/packages/yoroi-extension/app/UI/components/TransactionFailed/TransactionFailed.tsx index f40ab28149..01884d3619 100644 --- a/packages/yoroi-extension/app/UI/components/TransactionFailed/TransactionFailed.tsx +++ b/packages/yoroi-extension/app/UI/components/TransactionFailed/TransactionFailed.tsx @@ -4,9 +4,12 @@ import { FormattedMessage } from 'react-intl'; import globalMessages from '../../../i18n/global-messages'; import { useNavigateTo } from '../../features/governace/common/useNavigateTo'; import { FailedIlustration } from './FailedIlustration'; +import LocalizableError from '../../../i18n/LocalizableError'; -export const TransactionFailed = () => { +export const TransactionFailed = (props: { error: Error | null }) => { const navigate = useNavigateTo(); + const { error } = props; + return ( @@ -14,7 +17,9 @@ export const TransactionFailed = () => { - + {/* @ts-ignore */}