File tree 4 files changed +14
-14
lines changed
status_im2/contexts/shell/share
4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 18
18
[:<>
19
19
[rn/view {:style style/header-row}
20
20
[quo/button
21
- {icon-only? true
21
+ {: icon-only? true
22
22
:type :grey
23
23
:background :blur
24
24
:size 32
27
27
:on-press #(rf/dispatch [:navigate-back ])}
28
28
:i/close ]
29
29
[quo/button
30
- {:icon true
31
- :type :blur-bg
30
+ {:icon-only? true
31
+ :type :grey
32
+ :background :blur
32
33
:size 32
33
34
:accessibility-label :shell-scan-button
34
- :override-theme :dark
35
35
:on-press #(rf/dispatch [:navigate-back ])}
36
36
:i/scan ]]
37
37
[quo/text
Original file line number Diff line number Diff line change 21
21
of the compressed public key followed by an ellipsis followed by
22
22
the last 12 characters of the compressed public key"
23
23
[base-url public-key]
24
- (if (and public-key base-url (> (count public-key) 17 ) (= " join. status.im /u/" base-url))
24
+ (if (and public-key base-url (> (count public-key) 17 ) (= " status.app /u/" base-url))
25
25
(let [first-part-of-public-pk (subs public-key 0 5 )
26
26
ellipsis " ..."
27
27
public-key-size (count public-key)
Original file line number Diff line number Diff line change 21
21
22
22
(deftest test-get-abbreviated-profile-url
23
23
(testing " Ensure the function correctly generates an abbreviated profile URL for a valid public key"
24
- (is (= " join. status.im /u/zQ3sh...aimrdYpzeFUa"
24
+ (is (= " status.app /u/zQ3sh...aimrdYpzeFUa"
25
25
(utils.address/get-abbreviated-profile-url
26
- " join. status.im /u/"
26
+ " status.app /u/"
27
27
" zQ3shPrnUhhR42JJn3QdhodGest8w8MjiH8hPaimrdYpzeFUa" ))))
28
28
29
29
(testing " Ensure the function returns nil when given an empty public key"
30
- (is (nil? (utils.address/get-abbreviated-profile-url " join. status.im /u/" " " ))))
30
+ (is (nil? (utils.address/get-abbreviated-profile-url " status.app /u/" " " ))))
31
31
32
32
(testing " Ensure the function returns nil when given a nil public key"
33
- (is (nil? (utils.address/get-abbreviated-profile-url " join. status.im /u/" nil ))))
33
+ (is (nil? (utils.address/get-abbreviated-profile-url " status.app /u/" nil ))))
34
34
35
35
(testing " Ensure the function returns nil when given an incorrect base URL"
36
36
(is (nil? (utils.address/get-abbreviated-profile-url
37
- " join. status.im /uwu/"
37
+ " status.app /uwu/"
38
38
" zQ3shPrnUhhR42JJn3QdhodGest8w8MjiH8hPaimrdYpzeFUa" ))))
39
39
40
40
(testing " Ensure the function returns nil when given a public key shorter than 17 characters"
41
- (is (nil? (utils.address/get-abbreviated-profile-url " join. status.im /u/" " abc" )))
42
- (is (nil? (utils.address/get-abbreviated-profile-url " join. status.im /u/" " 1234" )))))
41
+ (is (nil? (utils.address/get-abbreviated-profile-url " status.app /u/" " abc" )))
42
+ (is (nil? (utils.address/get-abbreviated-profile-url " status.app /u/" " 1234" )))))
Original file line number Diff line number Diff line change 11
11
(def ^:const account-initials-action " /accountInitials" )
12
12
(def ^:const contact-images-action " /contactImages" )
13
13
(def ^:const generate-qr-action " /GenerateQRCode" )
14
- (def ^:const status-profile-base-url " https://join. status.im /u/" )
15
- (def ^:const status-profile-base-url-without-https " join. status.im /u/" )
14
+ (def ^:const status-profile-base-url " https://status.app /u/" )
15
+ (def ^:const status-profile-base-url-without-https " status.app /u/" )
16
16
17
17
(defn get-font-file-ready
18
18
" setup font file and get the absolute path to it
You can’t perform that action at this time.
0 commit comments