♻️ Improves shortcuts lifecycle management.

This commit is contained in:
Andrey Antukh 2021-05-12 10:21:53 +02:00 committed by Andrés Moya
parent c33c3fb2fa
commit 4b7f82a9d9
6 changed files with 130 additions and 55 deletions

View file

@ -237,7 +237,7 @@
(events/unlistenByKey key3))))]
(mf/use-effect on-mount)
(hooks/use-shortcuts sc/shortcuts)
(hooks/use-shortcuts ::viewer sc/shortcuts)
[:div.viewer-layout {:class (dom/classnames :force-visible
(:show-thumbnails state))}