Fix react warnings

This commit is contained in:
Teemu Patja 2017-08-26 21:20:04 +03:00
parent 92628d040b
commit ad3e764191
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,6 @@
issue-title
item-type
tokens] :as item}]
(println item)
[:div.item.activity-item
[:div.ui.mini.circular.image
[:img {:src avatar-url}]]
@ -43,6 +42,7 @@
[:div.footer-row
(when-not (= item-type "new-bounty")
(for [[tla balance] (merge tokens {:ETH balance-eth})]
^{:key (str display-name tla)}
[:div.balance-badge
(str (subs (str tla) 1) " " balance)]))
[:div.time (moment-timestamp updated)]]]])
@ -55,7 +55,7 @@
[:div.ui.text "No data"]
(into [:div.ui.items]
(for [item activity-items]
[activity-item item])))] )
^{:key item} [activity-item item])))] )
(defn activity-page []
(let [activity-items (rf/subscribe [:activity-feed])