mirror of https://github.com/status-im/reagent.git
Linting fixes
This commit is contained in:
parent
5ead085c93
commit
a027928f19
|
@ -1,6 +1,5 @@
|
|||
(ns geometry.components
|
||||
(:require [reagent.core :as r]
|
||||
[goog.events :as events]
|
||||
(:require [goog.events :as events]
|
||||
[geometry.geometry :refer [x y dist] :as g])
|
||||
(:import [goog.events EventType]))
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
(ns simpleexample.core
|
||||
(:require [reagent.core :as r]
|
||||
[reagent.dom :as rdom]))
|
||||
[reagent.dom :as rdom]
|
||||
[clojure.string :as str]))
|
||||
|
||||
(defonce timer (r/atom (js/Date.)))
|
||||
|
||||
|
@ -13,7 +14,7 @@
|
|||
[:h1 message])
|
||||
|
||||
(defn clock []
|
||||
(let [time-str (-> @timer .toTimeString (clojure.string/split " ") first)]
|
||||
(let [time-str (-> @timer .toTimeString (str/split " ") first)]
|
||||
[:div.example-clock
|
||||
{:style {:color @time-color}}
|
||||
time-str]))
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
(ns todomvc.core
|
||||
(:require [reagent.core :as r]
|
||||
[reagent.dom :as rdom]))
|
||||
[reagent.dom :as rdom]
|
||||
[clojure.string :as str]))
|
||||
|
||||
(defonce todos (r/atom (sorted-map)))
|
||||
|
||||
|
@ -29,7 +30,7 @@
|
|||
(let [val (r/atom title)
|
||||
stop #(do (reset! val "")
|
||||
(if on-stop (on-stop)))
|
||||
save #(let [v (-> @val str clojure.string/trim)]
|
||||
save #(let [v (-> @val str str/trim)]
|
||||
(if-not (empty? v) (on-save v))
|
||||
(stop))]
|
||||
(fn [{:keys [id class placeholder]}]
|
||||
|
|
Loading…
Reference in New Issue