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