0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00

💄 Fix linter issues

This commit is contained in:
Andrey Antukh 2022-12-14 14:14:01 +01:00
parent 096b5f096c
commit a8f65ba69e
2 changed files with 10 additions and 10 deletions

View file

@ -432,7 +432,7 @@
do-update-component-in-bulk #(st/emit! (dwl/update-component-in-bulk component-shapes component-file)) do-update-component-in-bulk #(st/emit! (dwl/update-component-in-bulk component-shapes component-file))
do-restore-component #(st/emit! (dwl/restore-component component-file component-id)) do-restore-component #(st/emit! (dwl/restore-component component-file component-id))
_do-update-remote-component do-update-remote-component
#(st/emit! (modal/show #(st/emit! (modal/show
{:type :confirm {:type :confirm
:message "" :message ""
@ -516,7 +516,7 @@
[:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides") [:& menu-entry {:title (tr "workspace.shape.menu.reset-overrides")
:on-click do-reset-component}] :on-click do-reset-component}]
[:& menu-entry {:title (tr "workspace.shape.menu.update-main") [:& menu-entry {:title (tr "workspace.shape.menu.update-main")
:on-click _do-update-remote-component}] :on-click do-update-remote-component}]
[:& menu-entry {:title (tr "workspace.shape.menu.go-main") [:& menu-entry {:title (tr "workspace.shape.menu.go-main")
:on-click do-navigate-component-file}]])))]) :on-click do-navigate-component-file}]])))])
[:& menu-separator]])) [:& menu-separator]]))

View file

@ -57,7 +57,7 @@
do-detach-component do-detach-component
#(st/emit! (dwl/detach-component id)) #(st/emit! (dwl/detach-component id))
_do-reset-component do-reset-component
#(st/emit! (dwl/reset-component id)) #(st/emit! (dwl/reset-component id))
do-update-component do-update-component
@ -66,7 +66,7 @@
do-restore-component do-restore-component
#(st/emit! (dwl/restore-component library-id component-id)) #(st/emit! (dwl/restore-component library-id component-id))
_do-update-remote-component do-update-remote-component
#(st/emit! (modal/show #(st/emit! (modal/show
{:type :confirm {:type :confirm
:message "" :message ""
@ -100,27 +100,27 @@
;; app/main/ui/workspace/context_menu.cljs ;; app/main/ui/workspace/context_menu.cljs
[:& context-menu {:on-close on-menu-close [:& context-menu {:on-close on-menu-close
:show (:menu-open @local) :show (:menu-open @local)
:options :options
(if main-instance? (if main-instance?
[[(tr "workspace.shape.menu.show-in-assets") do-show-in-assets]] [[(tr "workspace.shape.menu.show-in-assets") do-show-in-assets]]
(if local-component? (if local-component?
(if is-dangling? (if is-dangling?
[[(tr "workspace.shape.menu.detach-instance") do-detach-component] [[(tr "workspace.shape.menu.detach-instance") do-detach-component]
[(tr "workspace.shape.menu.reset-overrides") _do-reset-component] [(tr "workspace.shape.menu.reset-overrides") do-reset-component]
(when components-v2 (when components-v2
[(tr "workspace.shape.menu.restore-main") do-restore-component])] [(tr "workspace.shape.menu.restore-main") do-restore-component])]
[[(tr "workspace.shape.menu.detach-instance") do-detach-component] [[(tr "workspace.shape.menu.detach-instance") do-detach-component]
[(tr "workspace.shape.menu.reset-overrides") _do-reset-component] [(tr "workspace.shape.menu.reset-overrides") do-reset-component]
[(tr "workspace.shape.menu.update-main") do-update-component] [(tr "workspace.shape.menu.update-main") do-update-component]
[(tr "workspace.shape.menu.show-main") do-show-component]]) [(tr "workspace.shape.menu.show-main") do-show-component]])
(if is-dangling? (if is-dangling?
[[(tr "workspace.shape.menu.detach-instance") do-detach-component] [[(tr "workspace.shape.menu.detach-instance") do-detach-component]
[(tr "workspace.shape.menu.reset-overrides") _do-reset-component] [(tr "workspace.shape.menu.reset-overrides") do-reset-component]
(when components-v2 (when components-v2
[(tr "workspace.shape.menu.restore-main") do-restore-component])] [(tr "workspace.shape.menu.restore-main") do-restore-component])]
[[(tr "workspace.shape.menu.detach-instance") do-detach-component] [[(tr "workspace.shape.menu.detach-instance") do-detach-component]
[(tr "workspace.shape.menu.reset-overrides") _do-reset-component] [(tr "workspace.shape.menu.reset-overrides") do-reset-component]
[(tr "workspace.shape.menu.update-main") _do-update-remote-component] [(tr "workspace.shape.menu.update-main") do-update-remote-component]
[(tr "workspace.shape.menu.go-main") do-navigate-component-file]])))}]]]]]))) [(tr "workspace.shape.menu.go-main") do-navigate-component-file]])))}]]]]])))