From 4a781bd0dd8828ce152f6ab2c3f1bbd6b5e826f7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 9 Jan 2023 20:20:09 -0300 Subject: fix #7153: more error handling if handler do not trap error then fail at compile time, all safe handlers push alert on error errors are typed so they render good information --- .../src/components/PendingTransactions.stories.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-webextension/src/components/PendingTransactions.stories.tsx') diff --git a/packages/taler-wallet-webextension/src/components/PendingTransactions.stories.tsx b/packages/taler-wallet-webextension/src/components/PendingTransactions.stories.tsx index 2155c7aa6..d54dfe8fc 100644 --- a/packages/taler-wallet-webextension/src/components/PendingTransactions.stories.tsx +++ b/packages/taler-wallet-webextension/src/components/PendingTransactions.stories.tsx @@ -24,7 +24,7 @@ import { Transaction, TransactionType, } from "@gnu-taler/taler-util"; -import { createExample } from "../test-utils.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; import { PendingTransactionsView as TestedComponent } from "./PendingTransactions.js"; export default { @@ -32,7 +32,7 @@ export default { component: TestedComponent, }; -export const OnePendingTransaction = createExample(TestedComponent, { +export const OnePendingTransaction = tests.createExample(TestedComponent, { transactions: [ { amountEffective: "USD:10", @@ -42,7 +42,7 @@ export const OnePendingTransaction = createExample(TestedComponent, { ], }); -export const ThreePendingTransactions = createExample(TestedComponent, { +export const ThreePendingTransactions = tests.createExample(TestedComponent, { transactions: [ { amountEffective: "USD:10", @@ -62,7 +62,7 @@ export const ThreePendingTransactions = createExample(TestedComponent, { ], }); -export const TenPendingTransactions = createExample(TestedComponent, { +export const TenPendingTransactions = tests.createExample(TestedComponent, { transactions: [ { amountEffective: "USD:10", -- cgit v1.2.3