-
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.
finish all the logic, polishing pending
- Loading branch information
1 parent
7435066
commit 505e486
Showing
9 changed files
with
102 additions
and
92 deletions.
There are no files selected for viewing
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
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
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
10 changes: 10 additions & 0 deletions
10
src/status_im/contexts/wallet/sheets/unpreferred_networks_alert/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,10 @@ | ||
(ns status-im.contexts.wallet.sheets.unpreferred-networks-alert.style) | ||
|
||
(def sending-to-unpreferred-networks-title | ||
{:margin-horizontal 20}) | ||
|
||
(def sending-to-unpreferred-networks-text | ||
{:flex 1 | ||
:height 66 | ||
:margin-horizontal 20 | ||
:margin-vertical 4}) |
28 changes: 28 additions & 0 deletions
28
src/status_im/contexts/wallet/sheets/unpreferred_networks_alert/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,28 @@ | ||
(ns status-im.contexts.wallet.sheets.unpreferred-networks-alert.view | ||
(:require [quo.core :as quo] | ||
[re-frame.core :as rf] | ||
[status-im.contexts.wallet.sheets.unpreferred-networks-alert.style :as style] | ||
[utils.i18n :as i18n])) | ||
|
||
(defn view | ||
[{:keys [on-confirm]}] | ||
[:<> | ||
[quo/text | ||
{:style style/sending-to-unpreferred-networks-title | ||
:size :heading-2 | ||
:weight :semi-bold} | ||
(i18n/label :t/sending-to-unpreferred-networks)] | ||
[quo/text | ||
{:style style/sending-to-unpreferred-networks-text | ||
:size :paragraph-1} | ||
(i18n/label :t/sending-to-networks-the-receiver-does-not-prefer)] | ||
[quo/bottom-actions | ||
{:actions :two-actions | ||
:button-two-label (i18n/label :t/cancel) | ||
:button-two-props {:on-press #(rf/dispatch [:hide-bottom-sheet]) | ||
:type :grey} | ||
:button-one-label (i18n/label :t/proceed-anyway) | ||
:button-one-props {:on-press (fn [] | ||
(rf/dispatch [:hide-bottom-sheet]) | ||
(when on-confirm (on-confirm))) | ||
:customization-color :danger}}]]) |
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