From 8f060c2e7db7e12bb4aec78712a34f5e0f251340 Mon Sep 17 00:00:00 2001 From: Deepu Mohan Puthrote Date: Sun, 2 Jun 2024 00:00:26 +0100 Subject: [PATCH] fix(clj-kondo): fix unused bindings --- src/cljs_2048/views.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cljs_2048/views.cljs b/src/cljs_2048/views.cljs index 9bee004..31d0eac 100644 --- a/src/cljs_2048/views.cljs +++ b/src/cljs_2048/views.cljs @@ -54,7 +54,7 @@ "Displaying the game tile" [row-index col-index [value state]] ^{:key col-index} - [:div {:class (str "transition-transform duration-300 ease-in-out")} ;; TODO apply tile-position based on new position + [:div {:class (str "transition-transform duration-300 ease-in-out tile-position-" row-index "-" col-index)} ;; TODO apply tile-position based on new position [:div {:class (str "text-5xl font-bold size-32 flex justify-center items-center rounded-md tile-" value (cond (= state :merged) @@ -89,10 +89,10 @@ [:div {:class "bg-brown-600 z-0 grid grid-rows-4 grid-cols-4 gap-4 p-4 rounded-md" :id "grid-panel"} (map-indexed - (fn [row-index row] + (fn [row-index _] ^{:key row-index} (map-indexed - (fn [col-index cell] + (fn [col-index _] ^{:key col-index} ;; size-32 makes the grid cells big [:div {:class "size-32 rounded-md bg-brown-500" } ])