|
102 | 102 | :container-style style/empty-container-style}]
|
103 | 103 | [rn/view (style/dapps-container bottom)
|
104 | 104 | [rn/flat-list
|
105 |
| - {:data sessions |
106 |
| - :always-bounce-vertical false |
| 105 | + {:data sessions |
| 106 | + :always-bounce-vertical false |
107 | 107 | :content-container-style (style/dapps-list theme)
|
108 |
| - :render-fn (fn [{:keys [topic pairingTopic name url iconUrl]}] |
109 |
| - [quo/dapp |
110 |
| - {:dapp {:avatar (data-transformations/compute-dapp-icon-path |
111 |
| - iconUrl |
112 |
| - url) |
113 |
| - :name |
114 |
| - (data-transformations/compute-dapp-name |
115 |
| - name |
116 |
| - url) |
117 |
| - :value url |
118 |
| - :topic topic |
119 |
| - :pairing-topic pairingTopic |
120 |
| - :customization-color customization-color} |
121 |
| - :accessibility-label (str "dapp-" topic) |
122 |
| - :state :default |
123 |
| - :action :icon |
124 |
| - :blur? false |
125 |
| - :customization-color color |
126 |
| - :right-component (fn [dapp] |
127 |
| - [rn/pressable |
128 |
| - {:on-press (fn [] |
129 |
| - (on-dapp-disconnect-press |
130 |
| - wallet-account |
131 |
| - dapp))} |
132 |
| - [quo/icon :i/disconnect |
133 |
| - {:color (colors/theme-colors |
| 108 | + :render-fn (fn [{:keys [topic pairingTopic name url iconUrl]}] |
| 109 | + [quo/dapp |
| 110 | + {:dapp {:avatar |
| 111 | + (data-transformations/compute-dapp-icon-path |
| 112 | + iconUrl |
| 113 | + url) |
| 114 | + :name |
| 115 | + (data-transformations/compute-dapp-name |
| 116 | + name |
| 117 | + url) |
| 118 | + :value url |
| 119 | + :topic topic |
| 120 | + :pairing-topic pairingTopic |
| 121 | + :customization-color customization-color} |
| 122 | + :accessibility-label (str "dapp-" topic) |
| 123 | + :state :default |
| 124 | + :action :icon |
| 125 | + :blur? false |
| 126 | + :customization-color color |
| 127 | + :right-component (fn [dapp] |
| 128 | + [rn/pressable |
| 129 | + {:on-press (fn [] |
| 130 | + (on-dapp-disconnect-press |
| 131 | + wallet-account |
| 132 | + dapp))} |
| 133 | + [quo/icon :i/disconnect |
| 134 | + {:color (colors/theme-colors |
134 | 135 | colors/neutral-50
|
135 | 136 | colors/neutral-40
|
136 | 137 | theme)
|
137 |
| - :accessibility-label :icon}]])}]) |
138 |
| - :separator [rn/view {:style (style/separator theme)}]}]])])) |
| 138 | + :accessibility-label :icon}]])}]) |
| 139 | + :separator [rn/view {:style (style/separator theme)}]}]])])) |
0 commit comments