diff options
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx index dbf8bf128..b0e32258b 100644 --- a/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx @@ -20,8 +20,9 @@ */ import { ReducerState } from "@gnu-taler/anastasis-core"; -import { createExample, reducerStatesExample } from "../../utils/index.js"; +import { reducerStatesExample } from "../../utils/index.js"; import { SecretEditorScreen as TestedComponent } from "./SecretEditorScreen.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; export default { title: "Secret editor", @@ -35,11 +36,15 @@ export default { }, }; -export const WithSecretNamePreselected = createExample(TestedComponent, { - ...reducerStatesExample.secretEdition, - secret_name: "someSecretName", -} as ReducerState); +export const WithSecretNamePreselected = tests.createExample( + TestedComponent, + {}, + { + ...reducerStatesExample.secretEdition, + secret_name: "someSecretName", + } as ReducerState, +); -export const WithoutName = createExample(TestedComponent, { +export const WithoutName = tests.createExample(TestedComponent, {}, { ...reducerStatesExample.secretEdition, } as ReducerState); |