Skip to content

Commit f25d50f

Browse files
committed
Add Documentation drawer on Check your Keycard screen
1 parent 8ac9cc0 commit f25d50f

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

Diff for: src/status_im/contexts/keycard/check/view.cljs

+25-2
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,39 @@
33
[react-native.core :as rn]
44
[status-im.common.events-helper :as events-helper]
55
[status-im.common.resources :as resources]
6+
[status-im.constants :as constants]
67
[utils.i18n :as i18n]
78
[utils.re-frame :as rf]))
89

10+
(defn- keycard-documentation
11+
[]
12+
[quo/documentation-drawers
13+
{:title (i18n/label :t/keycard)
14+
:shell? true}
15+
[rn/view
16+
[quo/text {:size :paragraph-2}
17+
(i18n/label :t/keycard-documentation)]
18+
[quo/button
19+
{:size 40
20+
:type :primary
21+
:container-style {:margin-top 24 :margin-bottom 12}
22+
:background :blur
23+
:icon-right :i/external
24+
:on-press #(rf/dispatch [:browser.ui/open-url constants/get-keycard-url])
25+
:accessibility-label :get-keycard}
26+
(i18n/label :t/buy-keycard)]]])
27+
928
(defn view
1029
[]
1130
(let [{:keys [on-press]} (rf/sub [:get-screen-params])]
1231
[:<>
1332
[quo/page-nav
14-
{:icon-name :i/arrow-left
15-
:on-press events-helper/navigate-back}]
33+
{:icon-name :i/arrow-left
34+
:on-press events-helper/navigate-back
35+
:right-side [{:icon-name :i/info
36+
:on-press #(rf/dispatch [:show-bottom-sheet
37+
{:content keycard-documentation
38+
:shell? true}])}]}]
1639
[quo/page-top
1740
{:title (i18n/label :t/check-keycard)
1841
:description :text

Diff for: translations/en.json

+1
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,7 @@
13811381
"keycard-connected-title": "Connected",
13821382
"keycard-contains-key-pair": "Keycard contains your profile key pair",
13831383
"keycard-desc": "Own a Keycard? Store your keys on it; you’ll need it for transactions",
1384+
"keycard-documentation": "Keycard is a hardware wallet in a credit-card sized smartcard that works with the Status app. You can store your Status keys and sign transactions securely with it.\n\nKeycard is designed to be mobile-friendly and uses contactless NFC technology to communicate with your phone, so you can sign transactions with just a tap of the card. It is lightweight, convenient, and can fit in your wallet, pocket, or phone case.\n\nProtect your assets and accounts with the Keycard, a cold storage hardware wallet that provides a contactless and convenient experience.",
13841385
"keycard-dont-ask-card": "Don't ask for card to sign in",
13851386
"keycard-empty": "Keycard is empty",
13861387
"keycard-empty-ready": "Keycard is empty and ready to be used",

0 commit comments

Comments
 (0)