remove cond->

This commit is contained in:
Ulises M 2024-11-22 17:01:26 -06:00
parent 3738174283
commit 42b0cfe031
No known key found for this signature in database
GPG Key ID: 5A15782EB758534E
1 changed files with 7 additions and 6 deletions

View File

@ -6,12 +6,13 @@
(defn- add-shadow
[theme styles]
(cond-> styles
platform/ios? (assoc :shadow-radius (colors/theme-colors 30 50 theme)
:shadow-opacity (colors/theme-colors 0.1 0.7 theme)
:shadow-color colors/neutral-100
:shadow-offset {:width 0 :height (colors/theme-colors 8 12 theme)})
:else (assoc :elevation 10)))
(if platform/ios?
(assoc styles
:shadow-radius (colors/theme-colors 30 50 theme)
:shadow-opacity (colors/theme-colors 0.1 0.7 theme)
:shadow-color colors/neutral-100
:shadow-offset {:width 0 :height (colors/theme-colors 8 12 theme)})
(assoc styles :elevation 10)))
(defn inner
[top theme]