-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
81 additions
and
19 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/status_im/contexts/wallet/connected_dapps/disconnect_dapp/style.cljs
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,6 @@ | ||
(ns status-im.contexts.wallet.connected-dapps.disconnect-dapp.style) | ||
|
||
(def content-wrapper | ||
{:padding-vertical 8 | ||
:padding-horizontal 20 | ||
:gap 12}) |
33 changes: 33 additions & 0 deletions
33
src/status_im/contexts/wallet/connected_dapps/disconnect_dapp/view.cljs
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,33 @@ | ||
(ns status-im.contexts.wallet.connected-dapps.disconnect-dapp.view | ||
(:require | ||
[quo.core :as quo] | ||
[react-native.core :as rn] | ||
[status-im.contexts.wallet.connected-dapps.disconnect-dapp.style :as style] | ||
[utils.i18n :as i18n] | ||
[utils.re-frame :as rf])) | ||
|
||
(defn view [{:keys [wallet-account dapp on-disconnect]}] | ||
(let [{:keys [avatar name]} dapp | ||
{:keys [color]} wallet-account] | ||
[:<> | ||
[quo/drawer-top | ||
{:type :context-tag | ||
:context-tag-type :default | ||
:full-name name | ||
:profile-picture avatar | ||
:title (i18n/label :t/disconnect-dapp) | ||
:customization-color color}] | ||
[rn/view {:style style/content-wrapper} | ||
[quo/text | ||
{:size :paragraph-1} | ||
(i18n/label :t/disconnect-dapp-confirmation {:dapp name})]] | ||
[quo/bottom-actions | ||
{:actions :two-actions | ||
:button-one-label (i18n/label :t/disconnect) | ||
:button-one-props {:type :danger | ||
:accessibility-label :block-contact | ||
:on-press on-disconnect} | ||
:button-two-label (i18n/label :t/cancel) | ||
:button-two-props {:type :grey | ||
:accessibility-label :cancel | ||
:on-press #(rf/dispatch [:hide-bottom-sheet])}}]])) |
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