-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
status-im/status-go@4a43b2b...c9d0277 Signed-off-by: yqrashawn <[email protected]>
- Loading branch information
Showing
9 changed files
with
62 additions
and
14 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
36 changes: 36 additions & 0 deletions
36
src/status_im/contexts/shell/activity_center/notification/dapp_connection/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,36 @@ | ||
(ns status-im.contexts.shell.activity-center.notification.dapp-connection.view | ||
(:require | ||
[quo.core :as quo] | ||
[quo.foundations.resources :as quo.resources] | ||
[status-im.contexts.shell.activity-center.notification.common.view :as common] | ||
[utils.datetime :as datetime] | ||
[utils.i18n :as i18n] | ||
utils.url)) | ||
|
||
(defn view | ||
[{:keys [customization-color active-swipeable notification extra-fn]}] | ||
(let [{:keys [timestamp read dapp-url dapp-icon-url]} notification] | ||
[common/swipeable | ||
{:left-button common/swipe-button-read-or-unread | ||
:left-on-press common/swipe-on-press-toggle-read | ||
:right-button common/swipe-button-delete | ||
:right-on-press common/swipe-on-press-delete | ||
:active-swipeable active-swipeable | ||
:extra-fn extra-fn} | ||
[quo/activity-log | ||
{:title (i18n/label :t/connected-to-dapp) | ||
:customization-color customization-color | ||
:icon :i/dapps | ||
:timestamp (datetime/timestamp->relative timestamp) | ||
:unread? (not read) | ||
:context [[quo/context-tag | ||
{:type :dapp | ||
:size 24 | ||
:dapp-logo dapp-icon-url | ||
:dapp-name (utils.url/url-host dapp-url)}] | ||
"via" | ||
[quo/context-tag | ||
{:type :dapp | ||
:size 24 | ||
:dapp-logo (quo.resources/get-dapp :wallet-connect) | ||
:dapp-name "WalletConnect"}]]}]])) |
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
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