reformat status-im.ui.* namespaces
This commit is contained in:
parent
6c620728da
commit
6fc03fc217
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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?))
|
||||
|
|
|
@ -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 [_]
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
[status-im.utils.handlers :as handlers]
|
||||
[status-im.utils.handlers-macro :as handlers-macro]))
|
||||
|
||||
|
||||
;;;; Handlers
|
||||
|
||||
(handlers/register-handler-fx
|
||||
|
|
|
@ -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)))
|
|
@ -185,4 +185,3 @@
|
|||
:font-size 15
|
||||
:letter-spacing -0.2})
|
||||
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
{:gas (ethereum/estimate-gas symbol)
|
||||
:symbol symbol}))
|
||||
|
||||
|
||||
(defmethod navigation/preload-data! :wallet-request-transaction
|
||||
[db [event]]
|
||||
(if (= event :navigate-back)
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
transaction
|
||||
(assoc transaction :symbol :ETH)))))
|
||||
|
||||
|
||||
(re-frame/reg-sub :wallet.send/symbol
|
||||
:<- [::send-transaction]
|
||||
(fn [send-transaction]
|
||||
|
|
Loading…
Reference in New Issue