Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1aeb032

Browse files
committedJan 29, 2025··
Add Documentation drawer on Check your Keycard screen
1 parent 8ac9cc0 commit 1aeb032

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed
 

‎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-info)]
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

‎translations/en.json

+1
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,7 @@
13931393
"keycard-free-pairing-slots": "Keycard has {{n}} free pairing slots",
13941394
"keycard-full": "Keycard is full",
13951395
"keycard-has-multiaccount-on-it": "This card is full. Each card can hold one main key pair",
1396+
"keycard-info": "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.",
13961397
"keycard-init-description": "Put the card to the back of your phone to continue",
13971398
"keycard-init-title": "Looking for cards...",
13981399
"keycard-is-blocked-details": "You can no longer use this card to access or sign for this account. There have been too many failed passcode and PUK attempts.",

0 commit comments

Comments
 (0)
Please sign in to comment.