0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

:lisptick: Cosmetic changes.

This commit is contained in:
Andrey Antukh 2021-12-22 19:04:03 +01:00
parent 0cad1a1e7e
commit 9554dfbc5e
2 changed files with 3 additions and 4 deletions

View file

@ -10,13 +10,13 @@
[app.main.data.users :as du]
[app.main.store :as st]
[app.main.ui.releases.common :as rc]
[app.main.ui.releases.v1-10]
[app.main.ui.releases.v1-4]
[app.main.ui.releases.v1-5]
[app.main.ui.releases.v1-6]
[app.main.ui.releases.v1-7]
[app.main.ui.releases.v1-8]
[app.main.ui.releases.v1-9]
[app.main.ui.releases.v1-10]
[app.util.object :as obj]
[app.util.timers :as tm]
[rumext.alpha :as mf]))

View file

@ -11,7 +11,6 @@
[app.common.uuid :as uuid]
[app.main.refs :as refs]
[app.util.geom.grid :as gg]
[okulary.core :as l]
[rumext.alpha :as mf]))
(mf/defc square-grid [{:keys [frame zoom grid] :as props}]
@ -67,14 +66,14 @@
(mf/defc grid-display-frame
[{:keys [frame zoom]}]
(for [[index {:keys [type display] :as grid}] (->> (:grids frame)
(for [[index grid] (->> (:grids frame)
(filter :display)
(map-indexed vector))]
(let [props #js {:key (str (:id frame) "-grid-" index)
:frame frame
:zoom zoom
:grid grid}]
(case type
(case (:type grid)
:square [:> square-grid props]
:column [:> layout-grid props]
:row [:> layout-grid props]))))