|
1 | 1 | (ns status-im2.contexts.communities.actions.home-plus.view
|
2 | 2 | (:require [quo2.core :as quo]
|
3 |
| - [utils.re-frame :as rf])) |
| 3 | + [utils.re-frame :as rf] |
| 4 | + [status-im2.config :as config])) |
4 | 5 |
|
5 | 6 | (defn view
|
6 | 7 | []
|
7 | 8 | [quo/action-drawer
|
8 |
| - [[{:icon :i/download |
9 |
| - :accessibility-label :import-community |
10 |
| - :label "Import community" |
11 |
| - :on-press #(rf/dispatch [:navigate-to :community-import])} |
12 |
| - {:icon :i/communities |
13 |
| - :accessibility-label :create-community |
14 |
| - :label "Create community (only for e2e)" |
15 |
| - :on-press #(rf/dispatch [:legacy-only-for-e2e/open-create-community])}]]]) |
| 9 | + [(concat [{:icon :i/download |
| 10 | + :accessibility-label :import-community |
| 11 | + :label "Import community" |
| 12 | + :on-press #(rf/dispatch [:navigate-to :community-import])} |
| 13 | + {:icon :i/communities |
| 14 | + :accessibility-label :create-community |
| 15 | + :label "Create community (only for e2e)" |
| 16 | + :on-press #(rf/dispatch [:legacy-only-for-e2e/open-create-community])}] |
| 17 | + (when config/fast-create-community-enabled? |
| 18 | + [{:icon :i/communities |
| 19 | + :accessibility-label :create-closed-community |
| 20 | + :label "Create closed community" |
| 21 | + :on-press #(rf/dispatch [:fast-create-community/create-closed-community])} |
| 22 | + {:icon :i/communities |
| 23 | + :accessibility-label :create-open-community |
| 24 | + :label "Create open community" |
| 25 | + :on-press #(rf/dispatch [:fast-create-community/create-open-community])} |
| 26 | + {:icon :i/communities |
| 27 | + :accessibility-label :create-token-gated-community |
| 28 | + :label "Create token-gated community" |
| 29 | + :on-press #(rf/dispatch |
| 30 | + [:fast-create-community/create-token-gated-community])}]))]]) |
0 commit comments