diff options
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx index 12a79c56c..524b673a9 100644 --- a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.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 { ContinentSelectionScreen as TestedComponent } from "./ContinentSelectionScreen.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; export default { title: "Continent selection", @@ -35,22 +36,24 @@ export default { }, }; -export const BackupSelectContinent = createExample( +export const BackupSelectContinent = tests.createExample( TestedComponent, + {}, reducerStatesExample.backupSelectContinent, ); -export const BackupSelectCountry = createExample(TestedComponent, { +export const BackupSelectCountry = tests.createExample(TestedComponent, {}, { ...reducerStatesExample.backupSelectContinent, selected_continent: "Testcontinent", } as ReducerState); -export const RecoverySelectContinent = createExample( +export const RecoverySelectContinent = tests.createExample( TestedComponent, + {}, reducerStatesExample.recoverySelectContinent, ); -export const RecoverySelectCountry = createExample(TestedComponent, { +export const RecoverySelectCountry = tests.createExample(TestedComponent, {}, { ...reducerStatesExample.recoverySelectContinent, selected_continent: "Testcontinent", } as ReducerState); |