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