mirror of
https://github.com/status-im/re-frame-10x.git
synced 2025-02-05 02:43:25 +00:00
Refactor CSS creation
This commit is contained in:
parent
fa4fca778c
commit
4d2db30dee
@ -70,8 +70,7 @@
|
||||
(let [expanded? (r/atom false)]
|
||||
(fn [jsonml]
|
||||
[:span
|
||||
{:class (str/join " " ["re-frame-trace--object"
|
||||
(when @expanded? "expanded")])}
|
||||
{:class (str "re-frame-trace--object" (when @expanded? " expanded"))}
|
||||
[:span {:class "toggle"
|
||||
:on-click #(swap! expanded? not)}
|
||||
[:button.expansion-button (if @expanded? "▼" "▶")]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user