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 (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]