diff --git a/src/status_im/constants.cljs b/src/status_im/constants.cljs index 540d5e86c3..26b874735a 100644 --- a/src/status_im/constants.cljs +++ b/src/status_im/constants.cljs @@ -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")) diff --git a/src/status_im/hardwallet/onboarding.cljs b/src/status_im/hardwallet/onboarding.cljs index 8019cf6202..2efcf6d471 100644 --- a/src/status_im/hardwallet/onboarding.cljs +++ b/src/status_im/hardwallet/onboarding.cljs @@ -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 diff --git a/src/status_im/ui/screens/hardwallet/settings/views.cljs b/src/status_im/ui/screens/hardwallet/settings/views.cljs index ccc2d057c3..724577f60e 100644 --- a/src/status_im/ui/screens/hardwallet/settings/views.cljs +++ b/src/status_im/ui/screens/hardwallet/settings/views.cljs @@ -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 diff --git a/src/status_im/ui/screens/help_center/views.cljs b/src/status_im/ui/screens/help_center/views.cljs index 5703aadab0..46f388905c 100644 --- a/src/status_im/ui/screens/help_center/views.cljs +++ b/src/status_im/ui/screens/help_center/views.cljs @@ -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 diff --git a/src/status_im/ui/screens/keycard/onboarding/views.cljs b/src/status_im/ui/screens/keycard/onboarding/views.cljs index 163b47d1cd..c1190ecb85 100644 --- a/src/status_im/ui/screens/keycard/onboarding/views.cljs +++ b/src/status_im/ui/screens/keycard/onboarding/views.cljs @@ -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} diff --git a/src/status_im/ui/screens/keycard/recovery/views.cljs b/src/status_im/ui/screens/keycard/recovery/views.cljs index 055b483fd2..289f6defb4 100644 --- a/src/status_im/ui/screens/keycard/recovery/views.cljs +++ b/src/status_im/ui/screens/keycard/recovery/views.cljs @@ -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} diff --git a/src/status_im/ui/screens/keycard/views.cljs b/src/status_im/ui/screens/keycard/views.cljs index 184fdb6cd5..c9045ef707 100644 --- a/src/status_im/ui/screens/keycard/views.cljs +++ b/src/status_im/ui/screens/keycard/views.cljs @@ -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}