mirror of
https://github.com/penpot/penpot.git
synced 2026-05-01 22:28:15 +00:00
💄 Add minor cosmetic change to viewer-page component
This commit is contained in:
parent
0817c4e140
commit
8d6d589a0c
@ -545,16 +545,16 @@
|
||||
|
||||
(mf/defc viewer-page
|
||||
[{:keys [file-id] :as props}]
|
||||
(mf/use-effect
|
||||
(mf/deps file-id)
|
||||
(fn []
|
||||
(st/emit! (dv/initialize props))
|
||||
(fn []
|
||||
(st/emit! (dv/finalize props)))))
|
||||
|
||||
(mf/with-effect [file-id]
|
||||
(st/emit! (dv/initialize props))
|
||||
(fn []
|
||||
(st/emit! (dv/finalize props))))
|
||||
|
||||
(if-let [data (mf/deref refs/viewer-data)]
|
||||
(let [key (str (get-in data [:file :id]))]
|
||||
[:& viewer {:params props :data data :key key}])
|
||||
|
||||
[:div.loader-content.viewer-loader
|
||||
i/loader-pencil]))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user