|
54 | 54 | (rf/dispatch [:communities/get-permissioned-balances id])
|
55 | 55 | (fn []
|
56 | 56 | (let [{:keys [name color images]} (rf/sub [:communities/community id])
|
57 |
| - {:keys [highest-permission-role]} (rf/sub [:community/token-gated-overview id]) |
| 57 | + {:keys [checking? |
| 58 | + highest-permission-role]} (rf/sub [:community/token-gated-overview id]) |
58 | 59 | accounts (rf/sub [:wallet/accounts-without-watched-accounts])
|
59 | 60 | selected-addresses (rf/sub [:communities/selected-permission-addresses id])
|
60 | 61 | share-all-addresses? (rf/sub [:communities/share-all-addresses? id])
|
|
97 | 98 | :key-fn :address
|
98 | 99 | :data accounts}]
|
99 | 100 |
|
100 |
| - (if (and highest-permission-role (seq selected-addresses)) |
101 |
| - [rn/view |
102 |
| - {:style style/highest-role} |
103 |
| - [quo/text |
104 |
| - {:size :paragraph-2 |
105 |
| - :style {:color colors/neutral-50}} |
106 |
| - (i18n/label :t/eligible-to-join-as)] |
107 |
| - [quo/context-tag |
108 |
| - {:type :icon |
109 |
| - :icon :i/members |
110 |
| - :size 24 |
111 |
| - :context highest-role-text}]] |
112 |
| - [quo/info-message |
113 |
| - {:type :error |
114 |
| - :size :default |
115 |
| - :icon :i/info |
116 |
| - :style {:justify-content :center}} |
117 |
| - (if (empty? selected-addresses) |
118 |
| - (i18n/label :t/no-addresses-selected) |
119 |
| - (i18n/label :t/addresses-dont-contain-tokens-needed))]) |
| 101 | + (when-not checking? |
| 102 | + (if (and highest-permission-role (seq selected-addresses)) |
| 103 | + [rn/view |
| 104 | + {:style style/highest-role} |
| 105 | + [quo/text |
| 106 | + {:size :paragraph-2 |
| 107 | + :style {:color colors/neutral-50}} |
| 108 | + (i18n/label :t/eligible-to-join-as)] |
| 109 | + [quo/context-tag |
| 110 | + {:type :icon |
| 111 | + :icon :i/members |
| 112 | + :size 24 |
| 113 | + :context highest-role-text}]] |
| 114 | + [quo/info-message |
| 115 | + {:type :error |
| 116 | + :size :default |
| 117 | + :icon :i/info |
| 118 | + :style {:justify-content :center}} |
| 119 | + (if (empty? selected-addresses) |
| 120 | + (i18n/label :t/no-addresses-selected) |
| 121 | + (i18n/label :t/addresses-dont-contain-tokens-needed))])) |
120 | 122 |
|
121 | 123 | [rn/view {:style style/buttons}
|
122 | 124 | [quo/button
|
|
0 commit comments