Principles link 🔗 Fixes #12296
Signed-off-by: Shivek Khurana <shivek@status.im>
This commit is contained in:
parent
d3c5b9e948
commit
dd4c5f778e
|
@ -152,6 +152,7 @@
|
|||
(def ^:const privacy-policy-link "https://status.im/privacy-policy/")
|
||||
(def ^:const terms-of-service-link "https://status.im/terms-of-use")
|
||||
(def ^:const docs-link "https://status.im/docs/")
|
||||
(def ^:const principles-link "https://our.status.im/our-principles/")
|
||||
|
||||
(def ^:const activity-center-notification-type-one-to-one-chat 1)
|
||||
(def ^:const activity-center-notification-type-private-group-chat 2)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[status-im.ui.components.copyable-text :as copyable-text]
|
||||
[status-im.ui.components.icons.icons :as icons]
|
||||
[status-im.ui.components.webview :refer [webview]]
|
||||
[status-im.constants :refer [privacy-policy-link terms-of-service-link]]
|
||||
[status-im.constants :refer [privacy-policy-link principles-link terms-of-service-link]]
|
||||
[quo.core :as quo]
|
||||
[status-im.ui.components.react :as react])
|
||||
(:require-macros [status-im.utils.views :as views]))
|
||||
|
@ -66,3 +66,8 @@
|
|||
[webview
|
||||
{:source {:uri terms-of-service-link}
|
||||
:java-script-enabled true}])
|
||||
|
||||
(views/defview principles []
|
||||
[webview
|
||||
{:source {:uri principles-link}
|
||||
:java-script-enabled true}])
|
||||
|
|
|
@ -215,7 +215,7 @@
|
|||
|
||||
;Pinned messages
|
||||
{:name :chat-pinned-messages
|
||||
;TODO custom subtitle
|
||||
;TODO custom subtitle
|
||||
:options {:topBar {:visible false}}
|
||||
:component pin-messages/pinned-messages}
|
||||
|
||||
|
@ -455,11 +455,14 @@
|
|||
:options {:topBar {:title {:text (i18n/label :t/about-app)}}}
|
||||
:component about-app/about-app}
|
||||
{:name :privacy-policy
|
||||
:options {:topBar {:title {:text (i18n/label :t/privacy-policy)}}}
|
||||
:options {:topBar {:title {:text (i18n/label :t/privacy-policy)}}}
|
||||
:component about-app/privacy-policy}
|
||||
{:name :terms-of-service
|
||||
:options {:topBar {:title {:text (i18n/label :t/terms-of-service)}}}
|
||||
:options {:topBar {:title {:text (i18n/label :t/terms-of-service)}}}
|
||||
:component about-app/tos}
|
||||
{:name :principles
|
||||
:options {:topBar {:title {:text (i18n/label :t/principles)}}}
|
||||
:component about-app/principles}
|
||||
{:name :force-accept-tos
|
||||
:options {:topBar {:visible false}}
|
||||
:component terms-of-service/force-accept-tos}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
(i18n/label :t/wc-new-tos-based-on-principles-prefix)
|
||||
[{:style (merge {:color colors/blue}
|
||||
typography/font-medium)
|
||||
:on-press #(re-frame/dispatch [:open-modal :terms-of-service])}
|
||||
:on-press #(re-frame/dispatch [:open-modal :principles])}
|
||||
" "
|
||||
(i18n/label :t/principles)]])
|
||||
|
||||
|
|
Loading…
Reference in New Issue