mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 19:26:11 +02:00
Make grid component reactive to grid options change.
This commit is contained in:
parent
49d2c54488
commit
be446c6d79
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue