enhance: use lazy loader on whiteboards preview

This commit is contained in:
Konstantinos Kaloutas
2023-01-27 16:47:11 +02:00
committed by Tienson Qin
parent 2043f3a5a4
commit e752f7284f

View File

@@ -178,8 +178,9 @@
[:div (get-page-human-update-time page-name)]
[:div.flex-1]
(references-count page-name nil {:hover? true})]]
[:div.p-4.h-64.flex.justify-center
(tldraw-preview page-name)]])
(ui/lazy-visible
(fn [] [:div.p-4.h-64.flex.justify-center
(tldraw-preview page-name)]))])
(rum/defc dashboard-create-card
[]