diff --git a/src/cljs_react_material_ui/core.cljs b/src/cljs_react_material_ui/core.cljs index bb477e8..96c2334 100644 --- a/src/cljs_react_material_ui/core.cljs +++ b/src/cljs_react_material_ui/core.cljs @@ -9,7 +9,11 @@ (letfn [(transform [[k v]] [(t k) v])] (postwalk (fn [x] (if (map? x) (into {} (map transform x)) x)) coll))) -(def props-kebab->camel->js (comp clj->js camel-case-keys)) +(defn props-kebab->camel->js + [props] + (->> props + (transform-keys camel-case) + clj->js)) (defn create-mui-cmp ([react-class args] @@ -100,4 +104,4 @@ (defn toolbar [& args] (create-mui-el "Toolbar" args)) (defn toolbar-group [& args] (create-mui-el "ToolbarGroup" args)) (defn toolbar-separator [& args] (create-mui-el "ToolbarSeparator" args)) -(defn toolbar-title [& args] (create-mui-el "ToolbarTitle" args)) \ No newline at end of file +(defn toolbar-title [& args] (create-mui-el "ToolbarTitle" args))