0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

Use constants on workspace settings lightbox.

This commit is contained in:
Andrey Antukh 2016-04-10 18:22:40 +03:00
parent d69be9a378
commit b920342188
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -9,6 +9,7 @@
(:require [sablono.core :as html :refer-macros [html]]
[lentes.core :as l]
[rum.core :as rum]
[uxbox.constants :as c]
[uxbox.rstore :as rs]
[uxbox.data.pages :as udp]
[uxbox.ui.icons :as i]
@ -55,15 +56,14 @@
[:input#grid-x.input-text
{:placeholder "X px"
:type "number"
;; TODO: put here the default from constants
:value (:grid/x-axis opts "10")
:value (:grid/x-axis opts c/grid-x-axis)
:on-change (partial on-field-change :grid/x-axis)
:min 1 ;;TODO check this value
:min 1
:max 100}]
[:input#grid-y.input-text
{:placeholder "Y px"
:type "number"
:value (:grid/y-axis opts "10")
:value (:grid/y-axis opts c/grid-y-axis)
:on-change (partial on-field-change :grid/y-axis)
:min 1
:max 100}]]