mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 23:46:10 +02:00
📎 Fix linter issues.
This commit is contained in:
parent
e7b4010eba
commit
fe6a0ec5b8
5 changed files with 7 additions and 14 deletions
|
@ -12,7 +12,6 @@
|
|||
[app.config :as cf]
|
||||
[app.main.data.events :as ev]
|
||||
[app.main.data.media :as di]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.repo :as rp]
|
||||
[app.util.i18n :as i18n]
|
||||
[app.util.router :as rt]
|
||||
|
@ -345,7 +344,7 @@
|
|||
([{:keys [version]}]
|
||||
(ptk/reify ::mark-onboarding-as-viewed
|
||||
ptk/WatchEvent
|
||||
(watch [_ state _]
|
||||
(watch [_ _ _]
|
||||
(let [version (or version (:main @cf/version))
|
||||
props {:onboarding-viewed true
|
||||
:release-notes-viewed version}]
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
[app.main.ui.icons :as i]
|
||||
[app.main.ui.messages :as msgs]
|
||||
[app.main.ui.onboarding]
|
||||
[app.main.ui.onboarding.questions]
|
||||
[app.main.ui.releases]
|
||||
[app.main.ui.render :as render]
|
||||
[app.main.ui.settings :as settings]
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
(ns app.main.ui.dashboard
|
||||
(:require
|
||||
[app.common.spec :as us]
|
||||
[app.config :as cf]
|
||||
[app.main.data.dashboard :as dd]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.refs :as refs]
|
||||
[app.main.store :as st]
|
||||
[app.main.ui.context :as ctx]
|
||||
|
@ -22,7 +20,6 @@
|
|||
[app.main.ui.dashboard.search :refer [search-page]]
|
||||
[app.main.ui.dashboard.sidebar :refer [sidebar]]
|
||||
[app.main.ui.dashboard.team :refer [team-settings-page team-members-page]]
|
||||
[app.util.timers :as tm]
|
||||
[rumext.alpha :as mf]))
|
||||
|
||||
(defn ^boolean uuid-str?
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
(ns app.main.ui.onboarding.questions
|
||||
"External form for onboarding questions."
|
||||
(:require
|
||||
[app.config :as cf]
|
||||
[app.main.data.users :as du]
|
||||
[app.main.store :as st]
|
||||
[app.util.dom :as dom]
|
||||
|
@ -18,15 +17,12 @@
|
|||
(defn load-arengu-sdk
|
||||
[container-ref email form-id]
|
||||
(letfn [(on-init []
|
||||
(let [container (mf/ref-val container-ref)
|
||||
params #js {:email email}]
|
||||
(let [container (mf/ref-val container-ref)]
|
||||
(-> (.embed js/ArenguForms form-id container)
|
||||
(p/then (fn [form]
|
||||
(.setHiddenField ^js form "email" email))))))
|
||||
(p/then (fn [form] (.setHiddenField ^js form "email" email))))))
|
||||
|
||||
(on-submit-success [event]
|
||||
(st/emit! (du/mark-questions-as-answered)))
|
||||
]
|
||||
(on-submit-success [_]
|
||||
(st/emit! (du/mark-questions-as-answered)))]
|
||||
|
||||
(let [script (dom/create-element "script")
|
||||
head (unchecked-get js/document "head")
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
on-drop
|
||||
(mf/use-callback
|
||||
(mf/deps id index)
|
||||
(fn [side {:keys [id] :as data}]
|
||||
(fn [_side {:keys [id] :as data}]
|
||||
(st/emit! (dw/relocate-page id index))))
|
||||
|
||||
on-duplicate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue