Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Sep 25, 2023
1 parent 22b290c commit 886b358
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/quo2/components/colors/color_picker/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
[reagent.core :as reagent]
[quo2.components.colors.color.view :as color]))

;; TODO: using :no-color this to keep alignment of colors correct while b & w is being developed.
;; https://github.com/status-im/status-mobile/issues/15442
(def color-list
[:blue :yellow :purple :turquoise :magenta :sky :orange :army :flamingo :camel :copper :feng-shui])
[:blue :yellow :purple :turquoise :magenta :sky :orange :army :flamingo :camel :copper])

(defn- on-change-handler
[selected color-name on-change]
Expand All @@ -21,7 +19,7 @@
- `blur?` Boolean to enable blur background support.}"
[{:keys [default-selected?]}]
(let [internal-selected (reagent/atom default-selected?)]
(fn [{:keys [blur? on-change selected]}]
(fn [{:keys [blur? on-change selected feng-shui?]}]
(when (and (not (nil? selected)) (not= @internal-selected selected))
(reset! internal-selected selected))
[rn/scroll-view
Expand All @@ -34,4 +32,6 @@
:blur? blur?
:key color
:color color}])
color-list))])))
;; TODO: using :feng-shui? temporarily while b & w is being developed.
;; https://github.com/status-im/status-mobile/issues/15442
(if feng-shui? (conj color-list :feng-shui) color-list)))])))
3 changes: 2 additions & 1 deletion src/status_im2/contexts/quo_preview/colors/color_picker.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
[]
(let [state (reagent/atom {:selected :blue
:customization-color :blue
:blur? false})]
:blur? false
:feng-shui? true})]
(fn []
[preview/preview-container
{:state state
Expand Down

0 comments on commit 886b358

Please sign in to comment.