diff options
author | Florian Dold <florian@dold.me> | 2021-11-05 19:00:23 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-11-05 19:00:23 +0100 |
commit | 292d647aa917ecef7fee3f1ebeee0411b4c9a0d6 (patch) | |
tree | eb23dbf8f99ae4889b22160c8bf1fd5536f9b3f3 /packages | |
parent | d69ba24849f7ed18c6f95369a8ec4552d8ef2a19 (diff) |
make story compile again
Diffstat (limited to 'packages')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx index 05c4bfa42..7e3880f9c 100644 --- a/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from 'anastasis-core'; +import { ChallengeFeedbackStatus, RecoveryStates, ReducerState } from 'anastasis-core'; import { createExample, reducerStatesExample } from '../../utils'; import { SolveScreen as TestedComponent } from './SolveScreen'; @@ -257,6 +257,7 @@ export const QuestionChallengeTruthUnknownFeedback = createExample(TestedCompone export const QuestionChallengeAuthIbanFeedback = createExample(TestedComponent, { ...reducerStatesExample.challengeSolving, + recovery_state: RecoveryStates.ChallengeSelecting, recovery_information: { challenges: [{ cost: 'USD:1', @@ -273,7 +274,17 @@ export const QuestionChallengeAuthIbanFeedback = createExample(TestedComponent, challenge_amount: "EUR:1", credit_iban: "DE12345789000", business_name: "Data Loss Incorporated", - wire_transfer_subject: "Anastasis 987654321" + wire_transfer_subject: "Anastasis 987654321", + answer_code: 987654321, + // Fields that follow are only for compatibility with C reducer, + // will be removed eventually, + details: { + business_name: "foo", + challenge_amount: "foo", + credit_iban: "foo", + wire_transfer_subject: "foo", + }, + method: "iban", } } |