Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ts/features/itwallet/machine/eid/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ export const createEidIssuanceActionsImplementation = (
closeIssuance: ({
context
}: ActionArgs<Context, EidIssuanceEvents, EidIssuanceEvents>) => {
if (navigation.canGoBack()) {
navigation.goBack();
return;
}
Comment on lines +238 to +241
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The solution works.

However, this change removes the ability to display the feedback sheet, which is currently triggered by the requiredEidFeedback parameter.

We have two possible approaches:

  • Move the logic to the Redux store.
  • Let the screen that triggers the close also manage the feedback bottom sheet directly.

Both options require some UX decisions before proceeding. I suggest we align on this during the next sync.

What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes i think we can hande this at screen level because it keeps navigation/UI concerns local and avoid adding global state, maybe is better.
Let’s talk about this in the next sync, thank you!

navigation.reset({
index: 1,
routes: [
Expand Down
Loading