|
4 | 4 | [react-native.core :as rn]
|
5 | 5 | [react-native.gesture :as gesture]
|
6 | 6 | [status-im.common.not-implemented :as not-implemented]
|
7 |
| - [status-im.common.password-authentication.view :as password-authentication] |
8 | 7 | [status-im.contexts.communities.actions.airdrop-addresses.style :as style]
|
9 | 8 | [taoensso.timbre :as log]
|
10 | 9 | [utils.i18n :as i18n]
|
|
21 | 20 | (if can-edit-addresses?
|
22 | 21 | (rf/dispatch
|
23 | 22 | [:standard-auth/authorize
|
24 |
| - {:on-auth-fail (fn [err] |
25 |
| - (log/info "Biometric authentication failed" err) |
| 23 | + {:on-auth-success (fn [password] |
26 | 24 | (rf/dispatch
|
27 |
| - [:password-authentication/show |
28 |
| - {:content (fn [] [password-authentication/view])} |
29 |
| - {:label (i18n/label :t/enter-password) |
30 |
| - :on-press (fn [password] |
31 |
| - (rf/dispatch |
32 |
| - [:communities/edit-shared-addresses |
33 |
| - {:community-id community-id |
34 |
| - :password password |
35 |
| - :airdrop-address address |
36 |
| - :on-success (fn [] |
37 |
| - (rf/dispatch |
38 |
| - [:dismiss-modal |
39 |
| - :address-for-airdrop]) |
40 |
| - (rf/dispatch |
41 |
| - [:hide-bottom-sheet]))}]))}])) |
42 |
| - :on-auth-success (fn [password] |
43 |
| - (rf/dispatch [:dispatch |
44 |
| - [:communities/edit-shared-addresses |
45 |
| - {:community-id community-id |
46 |
| - :password password |
47 |
| - :airdrop-address address |
48 |
| - :on-success (fn [] |
49 |
| - (rf/dispatch |
50 |
| - [:dismiss-modal |
51 |
| - :address-for-airdrop]) |
52 |
| - (rf/dispatch |
53 |
| - [:hide-bottom-sheet]))}]]))}]) |
| 25 | + [:communities/edit-shared-addresses |
| 26 | + {:community-id community-id |
| 27 | + :password password |
| 28 | + :airdrop-address address |
| 29 | + :on-success (fn [] |
| 30 | + (rf/dispatch |
| 31 | + [:dismiss-modal |
| 32 | + :address-for-airdrop]) |
| 33 | + (rf/dispatch |
| 34 | + [:hide-bottom-sheet]))}])) |
| 35 | + :on-auth-fail (fn [err] |
| 36 | + (log/info "Biometric authentication failed" err))}]) |
54 | 37 | (do
|
55 | 38 | (rf/dispatch [:communities/set-airdrop-address community-id address])
|
56 | 39 | (rf/dispatch [:hide-bottom-sheet])))))]
|
|
0 commit comments