[ISSUE #3312] Implemented invite friends feature
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
eb8557dde8
commit
1905530044
|
@ -172,6 +172,7 @@
|
|||
:start-new-chat "Start new chat"
|
||||
:start-group-chat "Start group chat"
|
||||
:invite-friends "Invite friends"
|
||||
:get-status-at "Get Status at http://status.im?refCode={{address}}"
|
||||
:chats "Chats"
|
||||
:delete-chat "Delete chat"
|
||||
:group-chat "Group chat"
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
(ns status-im.ui.screens.add-new.views
|
||||
(:require-macros [status-im.utils.views :refer [defview letsubs]])
|
||||
(:require-macros [status-im.utils.views :as views])
|
||||
(:require [re-frame.core :as re-frame]
|
||||
[status-im.i18n :as i18n]
|
||||
[status-im.ui.components.action-button.action-button :as action-button]
|
||||
[status-im.ui.components.action-button.styles :as action-button.styles]
|
||||
[status-im.ui.components.react :as react]
|
||||
[status-im.ui.components.colors :as colors]
|
||||
[status-im.ui.components.common.common :as common]
|
||||
[status-im.ui.components.list-selection :as list-selection]
|
||||
[status-im.ui.components.react :as react]
|
||||
[status-im.ui.components.styles :as styles]
|
||||
[status-im.ui.components.status-bar.view :as status-bar]
|
||||
[status-im.i18n :as i18n]
|
||||
[status-im.ui.components.toolbar.view :as toolbar.view]
|
||||
[status-im.ui.components.common.common :as components]))
|
||||
[status-im.ui.components.toolbar.view :as toolbar]))
|
||||
|
||||
(defn options-list []
|
||||
(defn- options-list [{:keys [address]}]
|
||||
[react/view action-button.styles/actions-list
|
||||
[action-button/action-button
|
||||
{:label (i18n/label :t/start-new-chat)
|
||||
|
@ -40,11 +42,12 @@
|
|||
{:label (i18n/label :t/invite-friends)
|
||||
:icon :icons/share
|
||||
:icon-opts {:color colors/blue}
|
||||
:on-press #()}]])
|
||||
:on-press #(list-selection/open-share {:message (i18n/label :t/get-status-at {:address address})})}]])
|
||||
|
||||
(defview add-new []
|
||||
[react/view {:flex 1 :background-color :white}
|
||||
[status-bar/status-bar]
|
||||
[toolbar.view/simple-toolbar (i18n/label :t/new)]
|
||||
[components/separator]
|
||||
[options-list]])
|
||||
(views/defview add-new []
|
||||
(views/letsubs [account [:get-current-account]]
|
||||
[react/view {:flex 1 :background-color :white}
|
||||
[status-bar/status-bar]
|
||||
[toolbar/simple-toolbar (i18n/label :t/new)]
|
||||
[common/separator]
|
||||
[options-list account]]))
|
||||
|
|
Loading…
Reference in New Issue