-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into issue-13832
- Loading branch information
Showing
82 changed files
with
1,386 additions
and
735 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
module.exports = { | ||
bracketSpacing: false, | ||
jsxBracketSameLine: true, | ||
bracketSameLine: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
}; | ||
tabWidth: 4, | ||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
(ns quo2.components.communities.community-card-view | ||
(:require | ||
[quo2.components.communities.community-view :as community-view] | ||
[status-im.communities.core :as communities] | ||
[status-im.utils.handlers :refer [>evt <sub]] | ||
[status-im.ui.components.react :as react] | ||
[status-im.ui.screens.communities.styles :as styles] | ||
[status-im.ui.screens.communities.community :as community] | ||
[status-im.ui.screens.communities.icon :as communities.icon])) | ||
|
||
(defn community-card-view-item [{:keys [id name description locked | ||
status tokens cover tags featured] :as community}] | ||
(let [width (* (<sub [:dimensions/window-width]) 0.90)] | ||
[react/view {:style (merge (styles/community-card 20) | ||
{:margin-bottom 16} | ||
(if featured | ||
{:margin-right 12 | ||
:width width} | ||
{:flex 1 | ||
:margin-horizontal 20}))} | ||
[react/view {:style {:height 230 | ||
:border-radius 20} | ||
:on-press (fn [] | ||
(>evt [::communities/load-category-states id]) | ||
(>evt [:dismiss-keyboard]) | ||
(>evt [:navigate-to :community {:community-id id}])) | ||
:on-long-press #(>evt [:bottom-sheet/show-sheet | ||
{:content (fn [] [community/community-actions community])}])} | ||
[react/view | ||
{:flex 1} | ||
[react/view (styles/community-cover-container 40) | ||
[react/image | ||
{:source cover | ||
:style | ||
{:flex 1 | ||
:border-radius 20}}]] | ||
[react/view (styles/card-view-content-container 12) | ||
[react/view (styles/card-view-chat-icon 48) | ||
[communities.icon/community-icon-redesign community 48]] | ||
(when (= status :gated) | ||
[react/view (styles/permission-tag-styles) | ||
[community-view/permission-tag-container {:locked locked | ||
:status status | ||
:tokens tokens}]]) | ||
[community-view/community-title | ||
{:title name | ||
:description description}] | ||
[community-view/community-stats-column :card-view] | ||
[community-view/community-tags tags]]]]])) |
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
(ns quo2.components.communities.community-list-view | ||
(:require | ||
[quo2.components.communities.community-view :as community-view] | ||
[quo2.components.text :as text] | ||
[quo2.foundations.colors :as colors] | ||
[status-im.communities.core :as communities] | ||
[status-im.utils.handlers :refer [>evt]] | ||
[status-im.ui.components.react :as react] | ||
[status-im.ui.screens.communities.styles :as styles] | ||
[status-im.ui.screens.communities.community :as community] | ||
[status-im.ui.screens.communities.icon :as communities.icon])) | ||
|
||
(defn communities-list-view-item [{:keys [id name locked status tokens background-color] :as community}] | ||
[react/view {:style (merge (styles/community-card 16) | ||
{:margin-bottom 12 | ||
:margin-horizontal 20})} | ||
[react/view {:style {:height 56 | ||
:border-radius 16} | ||
:on-press (fn [] | ||
(>evt [::communities/load-category-states id]) | ||
(>evt [:dismiss-keyboard]) | ||
(>evt [:navigate-to :community {:community-id id}])) | ||
:on-long-press #(>evt [:bottom-sheet/show-sheet | ||
{:content (fn [] | ||
[community/community-actions community])}])} | ||
[react/view {:flex 1} | ||
[react/view {:flex-direction :row | ||
:border-radius 16 | ||
:padding-horizontal 12 | ||
:align-items :center | ||
:padding-vertical 8 | ||
:background-color background-color} | ||
[react/view | ||
[communities.icon/community-icon-redesign community 32]] | ||
[react/view {:flex 1 | ||
:margin-horizontal 12} | ||
[text/text {:weight :semi-bold | ||
:size :paragraph-1 | ||
:accessibility-label :community-name-text | ||
:number-of-lines 1 | ||
:ellipsize-mode :tail} | ||
name] | ||
[community-view/community-stats-column :list-view]] | ||
(when (= status :gated) | ||
[community-view/permission-tag-container {:locked locked | ||
:status status | ||
:tokens tokens}])]]]]) | ||
|
||
(defn communities-membership-list-item [{:keys [id name status tokens locked] :as community}] | ||
[react/view {:margin-bottom 12 | ||
:padding-horizontal 8} | ||
[react/touchable-highlight {:underlay-color colors/primary-50-opa-5 | ||
:style {:border-radius 12} | ||
:on-press (fn [] | ||
(>evt [::communities/load-category-states id]) | ||
(>evt [:dismiss-keyboard]) | ||
(>evt [:navigate-to :community {:community-id id}])) | ||
:on-long-press #(>evt [:bottom-sheet/show-sheet | ||
{:content (fn [] | ||
[community/community-actions community])}])} | ||
[react/view {:flex 1 | ||
:padding-vertical 8 | ||
:padding-horizontal 12} | ||
[react/view {:flex-direction :row | ||
:border-radius 16 | ||
:align-items :center} | ||
[communities.icon/community-icon-redesign community 48] | ||
[react/view {:margin-left 12 | ||
:flex 1} | ||
[community-view/community-title {:title name}]] | ||
(when (= status :gated) | ||
[react/view {:justify-content :center | ||
:margin-right 12} | ||
[community-view/permission-tag-container {:locked locked | ||
:status status | ||
:tokens tokens}]])]]]]) |
Oops, something went wrong.