remove cond->
This commit is contained in:
parent
3738174283
commit
42b0cfe031
|
@ -6,12 +6,13 @@
|
||||||
|
|
||||||
(defn- add-shadow
|
(defn- add-shadow
|
||||||
[theme styles]
|
[theme styles]
|
||||||
(cond-> styles
|
(if platform/ios?
|
||||||
platform/ios? (assoc :shadow-radius (colors/theme-colors 30 50 theme)
|
(assoc styles
|
||||||
:shadow-opacity (colors/theme-colors 0.1 0.7 theme)
|
:shadow-radius (colors/theme-colors 30 50 theme)
|
||||||
:shadow-color colors/neutral-100
|
:shadow-opacity (colors/theme-colors 0.1 0.7 theme)
|
||||||
:shadow-offset {:width 0 :height (colors/theme-colors 8 12 theme)})
|
:shadow-color colors/neutral-100
|
||||||
:else (assoc :elevation 10)))
|
:shadow-offset {:width 0 :height (colors/theme-colors 8 12 theme)})
|
||||||
|
(assoc styles :elevation 10)))
|
||||||
|
|
||||||
(defn inner
|
(defn inner
|
||||||
[top theme]
|
[top theme]
|
||||||
|
|
Loading…
Reference in New Issue