-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup quo2 2, remove status-im usage (#14308)
- Loading branch information
1 parent
3925de5
commit 3c1c8a1
Showing
86 changed files
with
567 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
(ns quo2.components.avatars.icon-avatar | ||
(:require [react-native.core :as rn] | ||
[quo2.foundations.colors :as colors] | ||
[status-im.ui.components.icons.icons :as icons])) | ||
[quo2.components.icon :as icons])) | ||
|
||
(def sizes | ||
{:big 48 | ||
{:big 48 | ||
:medium 32 | ||
:small 20}) | ||
:small 20}) | ||
|
||
(defn icon-avatar | ||
[{:keys [size icon color opacity] | ||
:or {opacity 20}}] | ||
(let [component-size (size sizes) | ||
circle-color (colors/custom-color color 50 opacity) | ||
icon-color (colors/custom-color-by-theme color 50 60) | ||
icon-size (case size | ||
:big 20 | ||
:medium 16 | ||
:small 12)] | ||
circle-color (colors/custom-color color 50 opacity) | ||
icon-color (colors/custom-color-by-theme color 50 60) | ||
icon-size (case size | ||
:big 20 | ||
:medium 16 | ||
:small 12)] | ||
[rn/view {:style {:width component-size | ||
:height component-size | ||
:border-radius component-size | ||
:background-color circle-color | ||
:justify-content :center | ||
:align-items :center}} | ||
[icons/icon icon {:container-style {:width icon-size | ||
:height icon-size} | ||
:color icon-color}]])) | ||
[icons/icon icon {:size icon-size | ||
:color icon-color}]])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.