Skip to content

Commit

Permalink
Cancel back button on screens which can't be popped
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Mar 17, 2020
1 parent bf2a167 commit 96c134e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 25 deletions.
56 changes: 33 additions & 23 deletions src/status_im/ui/screens/routing/intro_login_stack.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,43 @@
{:name :create-multiaccount-generate-key
:options {:stackPresentation "modal"}
:component intro/wizard-generate-key}
{:name :create-multiaccount-choose-key
:component intro/wizard-choose-key}
{:name :create-multiaccount-select-key-storage
:component intro/wizard-select-key-storage}
{:name :create-multiaccount-create-code
:component intro/wizard-create-code}
{:name :create-multiaccount-confirm-code
:component intro/wizard-confirm-code}

{:name :create-multiaccount-choose-key
:back-handler :noop
:component intro/wizard-choose-key}
{:name :create-multiaccount-select-key-storage
:back-handler :noop
:component intro/wizard-select-key-storage}
{:name :create-multiaccount-create-code
:back-handler :noop
:component intro/wizard-create-code}
{:name :create-multiaccount-confirm-code
:back-handler :noop
:component intro/wizard-confirm-code}
{:name :recover-multiaccount-enter-phrase
:component intro/wizard-enter-phrase}
{:name :recover-multiaccount-select-storage
:component intro/wizard-select-key-storage}
{:name :recover-multiaccount-enter-password
:component intro/wizard-create-code}
{:name :recover-multiaccount-confirm-password
:component intro/wizard-confirm-code}
{:name :recover-multiaccount-success
:component intro/wizard-recovery-success}
{:name :recover-multiaccount-select-storage
:back-handler :noop
:component intro/wizard-select-key-storage}
{:name :recover-multiaccount-enter-password
:back-handler :noop
:component intro/wizard-create-code}
{:name :recover-multiaccount-confirm-password
:back-handler :noop
:component intro/wizard-confirm-code}
{:name :recover-multiaccount-success
:back-handler :noop
:component intro/wizard-recovery-success}
{:name :keycard-onboarding-intro
:component keycard.onboarding/intro}
{:name :keycard-onboarding-puk-code
:component keycard.onboarding/puk-code}
{:name :keycard-onboarding-pin
:component keycard.onboarding/pin}
{:name :keycard-onboarding-recovery-phrase
:component keycard.onboarding/recovery-phrase}
{:name :keycard-onboarding-puk-code
:back-handler :noop
:component keycard.onboarding/puk-code}
{:name :keycard-onboarding-pin
:back-handler :noop
:component keycard.onboarding/pin}
{:name :keycard-onboarding-recovery-phrase
:back-handler :noop
:component keycard.onboarding/recovery-phrase}
{:name :keycard-onboarding-recovery-phrase-confirm-word1
:component keycard.onboarding/recovery-phrase-confirm-word}
{:name :keycard-onboarding-recovery-phrase-confirm-word2
Expand Down
5 changes: 3 additions & 2 deletions src/status_im/ui/screens/routing/main.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
:component stickers/pack-modal}
{:name :tribute-learn-more
:component tr-to-talk/learn-more}
{:name :welcome
:component home/welcome}
{:name :welcome
:back-handler :noop
:component home/welcome}
{:name :new-chat
:on-focus [::new-chat.events/new-chat-focus]
:transition :presentation-ios
Expand Down

0 comments on commit 96c134e

Please sign in to comment.