From 7a3f1a36e9c72ff2b11c0527f9e03cd49a46dc0f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 28 Jul 2022 09:53:51 +0200 Subject: [PATCH] :paperclip: Fix linter issues --- frontend/src/app/main/data/workspace.cljs | 2 +- frontend/src/app/main/data/workspace/highlight.cljs | 3 ++- frontend/src/app/main/ui/workspace/sidebar/layers.cljs | 4 ++-- frontend/src/app/main/ui/workspace/viewport/outline.cljs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 4511801439..62dc383ad6 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -35,6 +35,7 @@ [app.main.data.workspace.fix-bool-contents :as fbc] [app.main.data.workspace.groups :as dwg] [app.main.data.workspace.guides :as dwgu] + [app.main.data.workspace.highlight :as dwh] [app.main.data.workspace.interactions :as dwi] [app.main.data.workspace.layers :as dwly] [app.main.data.workspace.layout :as layout] @@ -45,7 +46,6 @@ [app.main.data.workspace.path.shapes-to-path :as dwps] [app.main.data.workspace.persistence :as dwp] [app.main.data.workspace.selection :as dws] - [app.main.data.workspace.highlight :as dwh] [app.main.data.workspace.shape-layout :as dwsl] [app.main.data.workspace.shapes :as dwsh] [app.main.data.workspace.state-helpers :as wsh] diff --git a/frontend/src/app/main/data/workspace/highlight.cljs b/frontend/src/app/main/data/workspace/highlight.cljs index 3968295c7d..f34a1b323b 100644 --- a/frontend/src/app/main/data/workspace/highlight.cljs +++ b/frontend/src/app/main/data/workspace/highlight.cljs @@ -7,6 +7,7 @@ (ns app.main.data.workspace.highlight (:require [app.common.spec :as us] + [clojure.set :as set] [potok.core :as ptk])) ;; --- Manage shape's highlight status @@ -17,7 +18,7 @@ (ptk/reify ::highlight-shape ptk/UpdateEvent (update [_ state] - (update-in state [:workspace-local :highlighted] clojure.set/union #{id})))) + (update-in state [:workspace-local :highlighted] set/union #{id})))) (defn dehighlight-shape [id] diff --git a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs index a780c566a9..dc82c6debd 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs @@ -151,13 +151,13 @@ on-pointer-enter (mf/use-fn (mf/deps id) - (fn [event] + (fn [_event] (st/emit! (dw/highlight-shape id)))) on-pointer-leave (mf/use-fn (mf/deps id) - (fn [event] + (fn [_event] (st/emit! (dw/dehighlight-shape id)))) on-context-menu diff --git a/frontend/src/app/main/ui/workspace/viewport/outline.cljs b/frontend/src/app/main/ui/workspace/viewport/outline.cljs index 17bd7734b4..87498e154a 100644 --- a/frontend/src/app/main/ui/workspace/viewport/outline.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/outline.cljs @@ -6,9 +6,9 @@ (ns app.main.ui.workspace.viewport.outline (:require + [app.common.data :as d] [app.common.exceptions :as ex] [app.common.geom.shapes :as gsh] - [app.common.data :as d] [app.util.object :as obj] [app.util.path.format :as upf] [clojure.set :as set]