mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
✨ Fix review issues.
This commit is contained in:
parent
b3252ec2b2
commit
a4d6524cb6
7 changed files with 17 additions and 17 deletions
|
@ -174,16 +174,11 @@
|
|||
[:div.text (t locale "dashboard.grid.empty-files")]]))
|
||||
|
||||
(mf/defc grid
|
||||
[{:keys [id opts files hide-new?] :as props}]
|
||||
(let [locale (mf/deref i18n/locale)
|
||||
click #(st/emit! (dd/create-file id))]
|
||||
[{:keys [id opts files] :as props}]
|
||||
(let [locale (mf/deref i18n/locale)]
|
||||
[:section.dashboard-grid
|
||||
(if (pos? (count files))
|
||||
[:div.dashboard-grid-row
|
||||
(when (not hide-new?)
|
||||
[:div.grid-item.add-file {:on-click click}
|
||||
[:span (t locale "dashboard.new-file")]])
|
||||
|
||||
[:div.grid-row
|
||||
(for [item files]
|
||||
[:& grid-item
|
||||
{:id (:id item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue