Fix react warnings

This commit is contained in:
Teemu Patja 2017-10-29 09:45:55 +02:00
parent b077b117a9
commit 1b3254dd0b
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
3 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,7 @@
[:div.footer-row
(when-not (= item-type "new-bounty")
(for [[tla balance] (merge tokens {:ETH balance-eth})]
^{:key (str display-name tla)}
^{:key (random-uuid)}
[:div.balance-badge
(str (subs (str tla) 1) " " balance)]))
[:div.time (moment-timestamp updated)]]]])

View File

@ -28,6 +28,7 @@
(str " (USD " value-usd ")")]
[:div.footer-row
(for [[tla balance] (merge tokens {:ETH balance-eth})]
^{:key (random-uuid)}
[:div.balance-badge
(str (subs (str tla) 1) " " balance)])
[:div.time (moment-timestamp updated)]]]]))

View File

@ -154,10 +154,11 @@ Zug, Switzerland"]]
[:h4.commiteth-footer-header "Social networks"]
[:ul.commiteth-footer-list
(for [[svg caption url] social-links]
^{:key (random-uuid)}
[:li.commiteth-footer-link
[:a {:href url}
[:div.commiteth-footer-icon
{:style {"background-image" (str "url(/img/" svg ".svg)")}}]
{:style {:background-image (str "url(/img/" svg ".svg)")}}]
[:span.commiteth-footer-link-label caption]]])]]
[:div.commiteth-footer-table__column
[:h4.commiteth-footer-header "Community"]