Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Jul 30, 2020
1 parent a434ec9 commit 9f42f3d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
7 changes: 3 additions & 4 deletions src/status_im/qr_scanner/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
:on-allowed #(re-frame/dispatch [:navigate-to :qr-scanner opts])
:on-denied (fn []
(utils/set-timeout
#(utils/show-popup (i18n/label :t/error)
(i18n/label :t/camera-access-error))
50))}})
#(utils/show-popup (i18n/label :t/error)
(i18n/label :t/camera-access-error))
50))}})

(fx/defn set-qr-code
{:events [:qr-scanner.callback/scan-qr-code-success]}
Expand All @@ -35,7 +35,6 @@
(when-let [handler (:cancel-handler opts)]
(fn [] {:dispatch [handler opts]}))))


(fx/defn handle-browse [cofx {:keys [domain]}]
(fx/merge cofx
{:browser/show-browser-selection domain}
Expand Down
1 change: 0 additions & 1 deletion src/status_im/router/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
(cb {:type :private-chat
:error :invalid-chat-id}))))


(defn match-browser [{:keys [domain]} cb]
(if (security/safe-link? domain)
(cb {:type :browser
Expand Down
3 changes: 1 addition & 2 deletions src/status_im/ui/screens/add_new/new_chat/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
(:require [clojure.string :as string]
[re-frame.core :as re-frame]
[status-im.ethereum.core :as ethereum]
[status-im.utils.universal-links.core :as ul]
[status-im.ethereum.ens :as ens]
[status-im.ethereum.resolver :as resolver]
[status-im.ui.screens.add-new.new-chat.db :as db]
Expand Down Expand Up @@ -89,7 +88,7 @@
(= type :private-chat) chat-id
(= type :contact) public-key
(and (= type :undefined)
public-key?) data)
public-key?) data)
validation-result (db/validate-pub-key db chat-key)]
(if-not validation-result
(if new-contact?
Expand Down
4 changes: 2 additions & 2 deletions src/status_im/ui/screens/home/sheet/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
(re-frame/dispatch [:bottom-sheet/hide])
;; https://github.com/facebook/react-native/pull/26839
(js/setTimeout
#(list-selection/open-share {:message (i18n/label :t/get-status-at)})
250))}]])
#(list-selection/open-share {:message (i18n/label :t/get-status-at)})
250))}]])

(def add-new
{:content add-new-view})
4 changes: 1 addition & 3 deletions src/status_im/utils/universal_links/core.cljs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
(ns status-im.utils.universal-links.core
(:require [clojure.string :as string]
[goog.string :as gstring]
(:require [goog.string :as gstring]
[re-frame.core :as re-frame]
[status-im.multiaccounts.model :as multiaccounts.model]
[status-im.chat.models :as chat]
[status-im.constants :as constants]
[status-im.router.core :as router]
[status-im.utils.security :as security]
[status-im.ui.components.react :as react]
[status-im.ui.screens.add-new.new-chat.db :as new-chat.db]
[status-im.navigation :as navigation]
Expand Down

0 comments on commit 9f42f3d

Please sign in to comment.