mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 01:01:30 -05:00
💄 Fix linter issues on settings/feedback ns.
This commit is contained in:
parent
91425050e4
commit
ef1c1d8ced
1 changed files with 3 additions and 5 deletions
|
@ -9,15 +9,13 @@
|
||||||
(:require
|
(:require
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.main.data.messages :as dm]
|
[app.main.data.messages :as dm]
|
||||||
[app.main.data.users :as du]
|
|
||||||
[app.main.refs :as refs]
|
[app.main.refs :as refs]
|
||||||
|
[app.main.repo :as rp]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui.components.forms :as fm]
|
[app.main.ui.components.forms :as fm]
|
||||||
[app.main.ui.icons :as i]
|
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[app.util.i18n :as i18n :refer [tr]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
[app.main.repo :as rp]
|
|
||||||
[cljs.spec.alpha :as s]
|
[cljs.spec.alpha :as s]
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
|
||||||
|
@ -37,7 +35,7 @@
|
||||||
on-succes
|
on-succes
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps profile)
|
(mf/deps profile)
|
||||||
(fn [event]
|
(fn [_]
|
||||||
(reset! loading false)
|
(reset! loading false)
|
||||||
(st/emit! (dm/success (tr "labels.feedback-sent")))
|
(st/emit! (dm/success (tr "labels.feedback-sent")))
|
||||||
(swap! form assoc :data {} :touched {} :errors {})))
|
(swap! form assoc :data {} :touched {} :errors {})))
|
||||||
|
@ -54,7 +52,7 @@
|
||||||
on-submit
|
on-submit
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps profile)
|
(mf/deps profile)
|
||||||
(fn [form event]
|
(fn [form _]
|
||||||
(reset! loading true)
|
(reset! loading true)
|
||||||
(let [data (:clean-data @form)]
|
(let [data (:clean-data @form)]
|
||||||
(->> (rp/mutation! :send-feedback data)
|
(->> (rp/mutation! :send-feedback data)
|
||||||
|
|
Loading…
Add table
Reference in a new issue