-
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.
Merge branch 'develop' into chore/remove-status-community
- Loading branch information
Showing
6 changed files
with
136 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(ns status-im.contexts.wallet.connected-dapps.style | ||
(:require [quo.foundations.colors :as colors])) | ||
|
||
(def screen-padding 20) | ||
|
||
(def header-container | ||
{:flex-direction :row | ||
:justify-content :space-between | ||
:padding-horizontal screen-padding | ||
:margin-vertical 12}) | ||
|
||
(defn header-text | ||
[bottom-padding?] | ||
{:padding-horizontal screen-padding | ||
:padding-top 12 | ||
:padding-bottom (when bottom-padding? 8) | ||
:color colors/black}) |
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,29 @@ | ||
(ns status-im.contexts.wallet.connected-dapps.view | ||
(:require | ||
[quo.core :as quo] | ||
[react-native.core :as rn] | ||
[status-im.contexts.wallet.connected-dapps.style :as style] | ||
[utils.re-frame :as rf])) | ||
|
||
(defn- header | ||
[{:keys [title subtitle]}] | ||
[:<> | ||
[rn/view {:style style/header-container} | ||
[quo/button | ||
{:icon-only? true | ||
:type :grey | ||
:background :blur | ||
:size 32 | ||
:accessibility-label :close-scan-qr-code | ||
:on-press #(rf/dispatch [:navigate-back])} | ||
:i/close]] | ||
[quo/text | ||
{:size :heading-1 | ||
:weight :semi-bold | ||
:style (style/header-text (when subtitle true))} | ||
title]]) | ||
|
||
(defn view | ||
[] | ||
[rn/view {:style {:flex 1}} | ||
[header {:title "Connected dApps"}]]) |
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