Fix spacing props for mui 4

This commit is contained in:
Juho Teperi 2019-06-14 00:02:32 +03:00
parent 7632e94489
commit 8066b09f4f
1 changed files with 5 additions and 5 deletions

View File

@ -54,10 +54,10 @@
#js {:palette #js {:primary #js {:main (gobj/get (.-red mui-colors) 100)}}}))
(defn custom-styles [theme]
#js {:button #js {:margin (.. theme -spacing -unit)}
#js {:button #js {:margin (.spacing theme 1)}
:textField #js {:width 200
:marginLeft (.. theme -spacing -unit)
:marginRight (.. theme -spacing -unit)}})
:marginLeft (.spacing theme 1)
:marginRight (.spacing theme 1)}})
(def with-custom-styles (withStyles custom-styles))
@ -68,7 +68,7 @@
[:> mui/Grid
{:container true
:direction "column"
:spacing 16}
:spacing 2}
[:> mui/Grid {:item true}
[:> mui/Toolbar
@ -135,7 +135,7 @@
[:> mui/Grid
{:container true
:direction "row"
:spacing 8}
:spacing 4}
;; For properties that require React Node as parameter,
;; either use r/as-element to convert Reagent hiccup forms into React elements,