From 1b3254dd0b9d8d679764e457fe141b7531a14d0e Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Sun, 29 Oct 2017 09:45:55 +0200 Subject: [PATCH] Fix react warnings --- src/cljs/commiteth/activity.cljs | 2 +- src/cljs/commiteth/bounties.cljs | 1 + src/cljs/commiteth/core.cljs | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cljs/commiteth/activity.cljs b/src/cljs/commiteth/activity.cljs index 8068b75..5b08004 100644 --- a/src/cljs/commiteth/activity.cljs +++ b/src/cljs/commiteth/activity.cljs @@ -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)]]]]) diff --git a/src/cljs/commiteth/bounties.cljs b/src/cljs/commiteth/bounties.cljs index b5bc65b..8c5664a 100644 --- a/src/cljs/commiteth/bounties.cljs +++ b/src/cljs/commiteth/bounties.cljs @@ -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)]]]])) diff --git a/src/cljs/commiteth/core.cljs b/src/cljs/commiteth/core.cljs index c783428..2dc9ffc 100644 --- a/src/cljs/commiteth/core.cljs +++ b/src/cljs/commiteth/core.cljs @@ -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"]