diff options
Diffstat (limited to 'packages/backend/src/pages/OfferTip.stories.tsx')
-rw-r--r-- | packages/backend/src/pages/OfferTip.stories.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/backend/src/pages/OfferTip.stories.tsx b/packages/backend/src/pages/OfferTip.stories.tsx index 9685fea..dfbf71f 100644 --- a/packages/backend/src/pages/OfferTip.stories.tsx +++ b/packages/backend/src/pages/OfferTip.stories.tsx @@ -20,6 +20,7 @@ */ import { h, VNode, FunctionalComponent } from 'preact'; +import { createSVG } from '../components/QR'; import { OfferTip as TestedComponent } from './OfferTip'; @@ -36,6 +37,9 @@ function createExample<Props>(Component: FunctionalComponent<Props>, props: Part return r } +const TIP_URI_EXAMPLE = 'taler+http://tip/merchant-backend.taler/2021.242-01G2X4275RBWG/?c=66BE594PDZR24744J6EQK52XM0' + export const Example = createExample(TestedComponent, { - tipURI: 'taler+http://tip/merchant-backend.taler/2021.242-01G2X4275RBWG/?c=66BE594PDZR24744J6EQK52XM0', + tipURI: TIP_URI_EXAMPLE, + qr_code: createSVG(TIP_URI_EXAMPLE) }); |