mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
💄 Add minor cosmetic change to viewer-page component
This commit is contained in:
parent
0817c4e140
commit
8d6d589a0c
1 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue