mirror of
https://github.com/status-im/re-frame-10x.git
synced 2025-01-27 22:56:36 +00:00
Refactor pod diff showing logic
This commit is contained in:
parent
676af57339
commit
a51a9037f5
@ -201,6 +201,8 @@
|
||||
|
||||
#_"---main-section---"]])
|
||||
(when render-diff?
|
||||
(list
|
||||
^{:key "only-before"}
|
||||
[rc/v-box
|
||||
:height common/gs-19s
|
||||
:justify :end
|
||||
@ -208,8 +210,9 @@
|
||||
:children [[rc/hyperlink-href
|
||||
;:class "app-db-path--label"
|
||||
:label "ONLY BEFORE"
|
||||
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
|
||||
(when render-diff?
|
||||
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
|
||||
|
||||
^{:key "only-before-diff"}
|
||||
[rc/v-box
|
||||
:height "60px"
|
||||
:min-width "100px"
|
||||
@ -217,8 +220,9 @@
|
||||
:padding common/gs-7s
|
||||
:margin (css-join "0px" pad-padding)}
|
||||
:children [[components/simple-render
|
||||
diff-before]]])
|
||||
(when render-diff?
|
||||
diff-before]]]
|
||||
|
||||
^{:key "only-after"}
|
||||
[rc/v-box
|
||||
:height common/gs-19s
|
||||
:justify :end
|
||||
@ -226,8 +230,9 @@
|
||||
:children [[rc/hyperlink-href
|
||||
;:class "app-db-path--label"
|
||||
:label "ONLY AFTER"
|
||||
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
|
||||
(when render-diff?
|
||||
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
|
||||
|
||||
^{:key "only-after-diff"}
|
||||
[rc/v-box
|
||||
:height "60px"
|
||||
:min-width "100px"
|
||||
@ -235,7 +240,7 @@
|
||||
:padding common/gs-7s
|
||||
:margin (css-join "0px" pad-padding)}
|
||||
:children [[components/simple-render
|
||||
diff-before]]])
|
||||
diff-before]]]))
|
||||
(when open?
|
||||
[rc/gap-f :size pad-padding])]]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user