mirror of
https://github.com/status-im/status-react.git
synced 2025-01-16 05:56:15 +00:00
adjust defview so that componen-map can be passed as the second arg
This commit is contained in:
parent
dd19989f12
commit
448e84a0e9
@ -45,7 +45,10 @@
|
|||||||
rest-body)
|
rest-body)
|
||||||
[subs component-map body] (case (count rest-body')
|
[subs component-map body] (case (count rest-body')
|
||||||
1 [nil {} (first rest-body')]
|
1 [nil {} (first rest-body')]
|
||||||
2 [(first rest-body') {} (second rest-body')]
|
2 (let [first-element (first rest-body')]
|
||||||
|
(if (map? first-element)
|
||||||
|
[nil first-element (second rest-body')]
|
||||||
|
[(first rest-body') {} (second rest-body')]))
|
||||||
3 rest-body')
|
3 rest-body')
|
||||||
[subs-bindings vars-bindings] (prepare-subs subs)]
|
[subs-bindings vars-bindings] (prepare-subs subs)]
|
||||||
`(do
|
`(do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user