reformat status-im.ui.* namespaces

This commit is contained in:
Roman Volosovskyi 2018-05-08 09:32:05 +03:00
parent 6c620728da
commit 6fc03fc217
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
82 changed files with 2024 additions and 2037 deletions

View File

@ -16,7 +16,6 @@
:align-items :center
:padding-horizontal 12})
(defn- border [position]
(let [radius (if platform/ios? 8 4)]
(case position
@ -53,7 +52,6 @@
{:android {:opacity 0.4}
:ios {:opacity 0.6}})
(defstyle button-borders
{:border-radius 8
:ios {;; Border radius is ignored with transparent background unless overflow "hidden" is used

View File

@ -203,7 +203,6 @@
label]
item-icon-forward]]])
(defn action-list [actions {:keys [container-style action-separator-style] :as styles}]
[react/view (merge styles/action-list container-style)
[flat-list

View File

@ -3,7 +3,6 @@
[status-im.utils.handlers-macro :as handlers-macro]
[status-im.transport.message.v1.contact :as message.contact]))
(defn account-update
"Takes effects (containing :db) + new account fields, adds all effects necessary for account update.
Optionally, one can specify event to be dispatched after fields are persisted."

View File

@ -40,7 +40,6 @@
:on-press #(when click-handler
(click-handler row action params))}]))
(defview contact-list-modal []
(letsubs [contacts [:all-added-people-contacts]
click-handler [:get :contacts/click-handler]

View File

@ -42,7 +42,6 @@
:data-store/save-contact contact-props}
(chat.models/upsert-chat chat-props)))))
(defn- update-contact [{:keys [whisper-identity] :as contact} {:keys [db]}]
(when (get-in db [:contacts/contacts whisper-identity])
{:db (update-in db [:contacts/contacts whisper-identity] merge contact)

View File

@ -68,7 +68,6 @@
;;Contacts ui props
(spec/def :contacts-ui/edit? boolean?)
(spec/def :contacts/contacts (spec/nilable (spec/map-of :global/not-empty-string :contact/contact)))
;public key of new contact during adding this new contact
(spec/def :contacts/new-identity (spec/nilable string?))

View File

@ -200,7 +200,6 @@
(fn [{:keys [title content confirm-button-text on-accept on-cancel]}]
(utils/show-confirmation title content confirm-button-text on-accept on-cancel)))
(re-frame/reg-fx
:close-application
(fn [_]

View File

@ -8,7 +8,6 @@
[status-im.utils.handlers :as handlers]
[status-im.utils.handlers-macro :as handlers-macro]))
;;;; Handlers
(handlers/register-handler-fx

View File

@ -30,6 +30,5 @@
:onPanResponderRelease (on-release animated-offset-x end-offset-x chat-id swiped?)
:onPanResponderTerminate (on-release animated-offset-x end-offset-x chat-id swiped?)})))
(defn pan-handlers [pan-responder]
(js->clj (.-panHandlers pan-responder)))

View File

@ -185,4 +185,3 @@
:font-size 15
:letter-spacing -0.2})

View File

@ -19,7 +19,6 @@
{:gas (ethereum/estimate-gas symbol)
:symbol symbol}))
(defmethod navigation/preload-data! :wallet-request-transaction
[db [event]]
(if (= event :navigate-back)

View File

@ -13,7 +13,6 @@
transaction
(assoc transaction :symbol :ETH)))))
(re-frame/reg-sub :wallet.send/symbol
:<- [::send-transaction]
(fn [send-transaction]