Skip to content

Commit

Permalink
fix(clj-kondo): fix unused bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
WarFox committed Jun 3, 2024
1 parent 547ccc1 commit 8f060c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cljs_2048/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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" } ])
Expand Down

0 comments on commit 8f060c2

Please sign in to comment.