Skip to content

Commit

Permalink
fix: remove unused component
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 3, 2020
1 parent 98bde66 commit b43ca56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/frontend/components/diff.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
value]))])

(rum/defc file < rum/reactive
[repo type path contents remote-oid component]
[repo type path contents remote-oid]
(let [{:keys [collapse? resolved?]} (util/react (rum/cursor diff-state path))
edit? (util/react *edit?)
delete? (= type "remove")]
Expand Down Expand Up @@ -143,7 +143,7 @@
;; TODO: `n` shortcut for next diff, `p` for previous diff


(rum/defcc diff <
(rum/defc diff <
rum/reactive
{:will-mount
(fn [state]
Expand Down Expand Up @@ -188,7 +188,7 @@
(reset! *edit? false)
(reset! *edit-content "")
state)}
[component]
[]
(let [diffs (util/react state/diffs)
remote-oid (util/react remote-hash-id)
repo (state/get-current-repo)
Expand All @@ -203,7 +203,7 @@
(seq diffs)
[:div#diffs-body
(for [{:keys [type path]} diffs]
(rum/with-key (file repo type path contents remote-oid component)
(rum/with-key (file repo type path contents remote-oid)
path))
[:div
(ui/textarea
Expand Down

0 comments on commit b43ca56

Please sign in to comment.