diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/components/Amount.stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/Amount.stories.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/components/Amount.stories.tsx b/packages/taler-wallet-webextension/src/components/Amount.stories.tsx index 095c9be24..fa28088eb 100644 --- a/packages/taler-wallet-webextension/src/components/Amount.stories.tsx +++ b/packages/taler-wallet-webextension/src/components/Amount.stories.tsx @@ -22,6 +22,7 @@ import { styled } from "@linaria/react"; import { Fragment, h, VNode } from "preact"; import { Amount } from "./Amount.js"; +import { AmountString } from "@gnu-taler/taler-util"; export default { title: "amount", @@ -39,7 +40,7 @@ const Table = styled.table` function ProductTable( prods: string[], - AmountRender: (p: { value: string; index: number }) => VNode = Amount, + AmountRender: (p: { value: AmountString; index: number }) => VNode = Amount, ): VNode { return ( <Table> @@ -52,7 +53,7 @@ function ProductTable( <tr key={i}> <td>p{i}</td> <td> - <AmountRender value={value} index={i} /> + <AmountRender value={value as AmountString} index={i} /> {/* <Amount value={value} fracSize={fracSize} /> */} </td> </tr> |