Skip to content

Commit

Permalink
remove excess group avatar file
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Son89 committed Aug 9, 2023
1 parent db110ac commit 057a31d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 50 deletions.
32 changes: 0 additions & 32 deletions src/quo2/components/avatars/group_avatar.cljs

This file was deleted.

2 changes: 1 addition & 1 deletion src/quo2/components/avatars/group_avatar/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

;; TODO: this implementation does not support group display picture (can only display default group
;; icon).
(defn view-internal
(defn- view-internal
[_]
(fn [{:keys [color size theme]}]
(let [container-size (get-in sizes [:container size])
Expand Down
12 changes: 8 additions & 4 deletions src/quo2/components/buttons/dynamic_button/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
:notification-up 2
:search-with-label 8
:search 6
:scroll-to-bottom 6)
:scroll-to-bottom 6
nil)
:margin-right (case type
:jump-to 8
:mention 2
:notification-down 8
:notification-up 8
:search-with-label 4
:search 6
:scroll-to-bottom 6)})
:scroll-to-bottom 6
nil)})

(defn text
[type]
Expand All @@ -30,10 +32,12 @@
:mention 0
:notification-down 8
:notification-up 8
:search-with-label 0)
:search-with-label 0
nil)
:margin-right (case type
:jump-to 0
:mention 8
:notification-down 0
:notification-up 0
:search-with-label 8)})
:search-with-label 8
nil)})
10 changes: 8 additions & 2 deletions src/quo2/components/buttons/dynamic_button/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
[{:keys [type pressed? customization-color theme]}]
(if (#{:jump-to :mention} type)
(if pressed?
(colors/custom-color customization-color (quo.theme/theme-value 50 60) theme)
(colors/custom-color customization-color (quo.theme/theme-value 60 50) theme))
(colors/theme-colors
(colors/custom-color customization-color 60)
(colors/custom-color customization-color 50)
theme)
(colors/theme-colors
(colors/custom-color customization-color 50)
(colors/custom-color customization-color 60)
theme))
(if pressed?
(colors/theme-colors colors/neutral-80-opa-80 colors/white-opa-80 theme)
(colors/theme-colors colors/neutral-80-opa-70 colors/white-opa-70 theme))))
Expand Down
2 changes: 1 addition & 1 deletion src/quo2/components/counter/step/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[react-native.core :as rn]
[utils.number]))

(defn view-internal
(defn- view-internal
[{:keys [type accessibility-label theme in-blur-view? customization-color]} value]
(let [type (or type :neutral)
value (utils.number/parse-int value)
Expand Down
11 changes: 1 addition & 10 deletions src/quo2/components/tabs/tabs/style.cljs
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
(ns quo2.components.tabs.tabs.style
(:require [oops.core :refer [oget]]
[quo2.components.tabs.tab.view :as tab]
[react-native.core :as rn]
[react-native.linear-gradient :as linear-gradient]
[react-native.masked-view :as masked-view]
[reagent.core :as reagent]
[utils.collection :as utils.collection]
[utils.number]
[react-native.gesture :as gesture]))
(:require [utils.number]))

(def linear-gradient
{:width "100%"
:height "100%"})


(defn tab
[{:keys [size default-tab-size number-of-items index style]}]
{:margin-right (if (= size default-tab-size) 12 8)
Expand Down

0 comments on commit 057a31d

Please sign in to comment.