aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-08-23 16:51:49 -0300
committerSebastian <sebasjm@gmail.com>2021-08-23 16:52:33 -0300
commit67e511d719cbc3e7f2b391a8d6914406caa2fb24 (patch)
tree0dc25e6c26ba0acc4c2aa217e1d30bfb1112268d /packages/taler-wallet-webextension/src/wallet/History.stories.tsx
parent39cbad89bbed61487a973e4df92084da1b0dc728 (diff)
downloadwallet-core-67e511d719cbc3e7f2b391a8d6914406caa2fb24.tar.xz
updated build fast for web
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/History.stories.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/History.stories.tsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/History.stories.tsx b/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
index f50fd3b68..7db13fef5 100644
--- a/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
@@ -26,8 +26,9 @@ import {
TransactionWithdrawal,
WithdrawalType
} from '@gnu-taler/taler-util';
-import { FunctionalComponent } from 'preact';
import { HistoryView as TestedComponent } from './History';
+import { createExample } from '../test-utils';
+
export default {
title: 'wallet/history/list',
@@ -106,12 +107,6 @@ const exampleData = {
} as TransactionRefund,
}
-function createExample<Props>(Component: FunctionalComponent<Props>, props: Partial<Props>) {
- const r = (args: any) => <Component {...args} />
- r.args = props
- return r
-}
-
export const Empty = createExample(TestedComponent, {
list: [],
balances: [{