-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
4648066
commit a821ec5
Showing
13 changed files
with
134 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/status_im/contexts/keycard/feature_unavailable/events.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(ns status-im.contexts.keycard.feature-unavailable.events | ||
(:require | ||
[status-im.contexts.keycard.feature-unavailable.view :as feature-unavailable] | ||
[utils.re-frame :as rf])) | ||
|
||
(rf/reg-event-fx | ||
:keycard/feature-unavailable-show | ||
(fn [_] | ||
{:fx [[:dispatch [:show-bottom-sheet {:content feature-unavailable/view}]]]})) |
28 changes: 28 additions & 0 deletions
28
src/status_im/contexts/keycard/feature_unavailable/view.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
(ns status-im.contexts.keycard.feature-unavailable.view | ||
(:require | ||
[quo.core :as quo] | ||
[status-im.constants :as constants] | ||
[utils.i18n :as i18n] | ||
[utils.re-frame :as rf])) | ||
|
||
(defn on-upvote | ||
[] | ||
(rf/dispatch [:open-url constants/mobile-upvote-link])) | ||
|
||
(defn view | ||
[] | ||
[:<> | ||
[quo/drawer-top | ||
{:title (i18n/label :t/feature-unavailable) | ||
:description (i18n/label :t/feature-unavailable-for-keycard-description)}] | ||
[quo/information-box | ||
{:type :default | ||
:icon :i/info | ||
:style {:margin-top 8 :margin-horizontal 20}} | ||
[:<> | ||
(i18n/label :t/feature-unavailable-info) | ||
[quo/text | ||
{:style {:text-decoration-line :underline} | ||
:size :paragraph-2 | ||
:on-press on-upvote} | ||
(i18n/label :t/upvote-it)]]]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters