mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 21:49:10 +00:00
Make grid component reactive to grid options change.
This commit is contained in:
parent
49d2c54488
commit
be446c6d79
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
(defn- grid-render
|
(defn- grid-render
|
||||||
[own]
|
[own]
|
||||||
(let [options (:options @wb/page-l)
|
(let [options (:options (rum/react wb/page-l))
|
||||||
color (:grid/color options "#cccccc")
|
color (:grid/color options "#cccccc")
|
||||||
width c/viewport-width
|
width c/viewport-width
|
||||||
height c/viewport-height
|
height c/viewport-height
|
||||||
@ -43,7 +43,7 @@
|
|||||||
(mx/component
|
(mx/component
|
||||||
{:render grid-render
|
{:render grid-render
|
||||||
:name "grid"
|
:name "grid"
|
||||||
:mixins [mx/static]}))
|
:mixins [mx/static rum/reactive]}))
|
||||||
|
|
||||||
;; --- Helpers
|
;; --- Helpers
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user