[#10718] Update FAQ links

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2020-05-28 11:36:39 +02:00
parent 3181280bf5
commit 9a114128bc
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
7 changed files with 25 additions and 14 deletions

View File

@ -284,3 +284,6 @@
;;ipfs
(def ipfs-proto-code "e3")
(def swarm-proto-code "e4")
(def faq "https://status.im/faq/")
(def faq-keycard (str faq "#keycard"))

View File

@ -8,7 +8,8 @@
[status-im.hardwallet.mnemonic :as mnemonic]
[taoensso.timbre :as log]
status-im.hardwallet.fx
[status-im.ui.components.react :as react]))
[status-im.ui.components.react :as react]
[status-im.constants :as constants]))
(fx/defn begin-setup-button-pressed
{:keys [:hardwallet.ui/begin-setup-button-pressed]}
@ -82,7 +83,7 @@
(fx/defn recovery-phrase-learn-more-pressed
{:events [:keycard.onboarding.recovery-phrase.ui/learn-more-pressed]}
[_]
(.openURL ^js react/linking "https://keycard.status.im"))
(.openURL ^js react/linking constants/faq-keycard))
(fx/defn recovery-phrase-next-pressed
{:events [:keycard.onboarding.recovery-phrase.ui/next-pressed

View File

@ -7,7 +7,8 @@
[status-im.ui.components.icons.vector-icons :as vector-icons]
[status-im.ui.components.colors :as colors]
[status-im.ui.components.common.common :as components.common]
[status-im.ui.components.topbar :as topbar]))
[status-im.ui.components.topbar :as topbar]
[status-im.constants :as constants]))
(defn- action-row [{:keys [icon label on-press color-theme]}]
[react/touchable-highlight
@ -110,7 +111,8 @@
[react/view
[action-row {:icon :main-icons/help
:label :t/help-capitalized
:on-press #(.openURL ^js react/linking "https://hardwallet.status.im")}]
:on-press #(.openURL ^js react/linking
constants/faq-keycard)}]
(when pairing
[react/view
[action-row {:icon :main-icons/add

View File

@ -4,7 +4,8 @@
[status-im.ui.components.list.views :as list]
[status-im.ui.components.colors :as colors]
[status-im.utils.platform :as platform]
[status-im.ui.components.topbar :as topbar]))
[status-im.ui.components.topbar :as topbar]
[status-im.constants :as constants]))
(def data
[{:type :small
@ -12,9 +13,7 @@
:accessibility-label :faq-button
:on-press
#(.openURL ^js react/linking
(if platform/desktop?
"https://status.im/docs/FAQ-desktop.html"
"https://status.im/docs/FAQs.html"))
constants/faq)
:accessories [:chevron]}
{:type :small
:title :t/glossary

View File

@ -13,7 +13,8 @@
[status-im.ui.components.tooltip.views :as tooltip]
[status-im.ui.components.topbar :as topbar]
[status-im.ui.screens.hardwallet.pin.views :as pin.views]
[status-im.ui.screens.keycard.styles :as styles])
[status-im.ui.screens.keycard.styles :as styles]
[status-im.constants :as constants])
(:require-macros [status-im.utils.views :refer [defview letsubs]]))
(defview intro []
@ -43,7 +44,8 @@
:text-align :center}}
(i18n/label :t/keycard-onboarding-intro-text)]]
[react/view
[react/touchable-highlight {:on-press #(.openURL ^js react/linking "https://keycard.status.im")}
[react/touchable-highlight {:on-press #(.openURL ^js react/linking
constants/faq-keycard)}
[react/view {:flex-direction :row
:align-items :center
:justify-content :center}

View File

@ -15,7 +15,8 @@
[status-im.ui.screens.keycard.styles :as styles]
[status-im.utils.core :as utils.core]
[status-im.utils.gfycat.core :as gfy]
[status-im.utils.identicon :as identicon])
[status-im.utils.identicon :as identicon]
[status-im.constants :as constants])
(:require-macros [status-im.utils.views :refer [defview letsubs]]))
(defn intro []
@ -40,7 +41,8 @@
:text-align :center}}
(i18n/label :t/keycard-recovery-intro-text)]]
[react/view {:margin-top 33}
[react/touchable-highlight {:on-press #(.openURL ^js react/linking "https://keycard.status.im")}
[react/touchable-highlight {:on-press #(.openURL ^js react/linking
constants/faq-keycard)}
[react/view {:flex-direction :row
:align-items :center
:justify-content :center}

View File

@ -11,7 +11,8 @@
[status-im.ui.components.topbar :as topbar]
[status-im.ui.screens.chat.photos :as photos]
[status-im.ui.screens.hardwallet.pin.views :as pin.views]
[status-im.ui.screens.keycard.styles :as styles])
[status-im.ui.screens.keycard.styles :as styles]
[status-im.constants :as constants])
(:require-macros [status-im.utils.views :refer [defview letsubs]]))
;; NOTE(Ferossgp): Seems like it should be in popover
@ -170,7 +171,8 @@
:style {:width 144
:height 120}}]
[react/view {:margin-top 40}
[react/touchable-highlight {:on-press #(.openURL ^js react/linking "https://keycard.status.im")}
[react/touchable-highlight {:on-press #(.openURL ^js react/linking
constants/faq-keycard)}
[react/view {:flex-direction :row
:align-items :center
:justify-content :center}