mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 13:46: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
|
||||
[own]
|
||||
(let [options (:options @wb/page-l)
|
||||
(let [options (:options (rum/react wb/page-l))
|
||||
color (:grid/color options "#cccccc")
|
||||
width c/viewport-width
|
||||
height c/viewport-height
|
||||
|
@ -43,7 +43,7 @@
|
|||
(mx/component
|
||||
{:render grid-render
|
||||
:name "grid"
|
||||
:mixins [mx/static]}))
|
||||
:mixins [mx/static rum/reactive]}))
|
||||
|
||||
;; --- Helpers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue