-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove mock data from wallet and feature flag incomplete features #18569
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
[quo.core :as quo] | ||
[react-native.core :as rn] | ||
[reagent.core :as reagent] | ||
[status-im.config :as config] | ||
[status-im.contexts.wallet.account.style :as style] | ||
[status-im.contexts.wallet.account.tabs.view :as tabs] | ||
[status-im.contexts.wallet.common.account-switcher.view :as account-switcher] | ||
|
@@ -52,7 +53,9 @@ | |
:receive-action #(rf/dispatch [:open-modal :wallet-share-address {:status :receive}]) | ||
:buy-action #(rf/dispatch [:show-bottom-sheet | ||
{:content buy-drawer}]) | ||
:bridge-action #(rf/dispatch [:open-modal :wallet-bridge])}]) | ||
:bridge-action (if (:bridge-token config/wallet-feature-flags) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To improve readability, maybe would be nice to have some function like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, I agree! There was discussion in another pr - #18530 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome 😃 |
||
#(rf/dispatch [:open-modal :wallet-bridge]) | ||
#(js/alert "feature disabled in config file"))}]) | ||
[quo/tabs | ||
{:style style/tabs | ||
:size 32 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
[quo.theme] | ||
[react-native.core :as rn] | ||
[status-im.contexts.wallet.collectible.tabs.about.style :as style] | ||
[status-im.contexts.wallet.temp :as temp] | ||
[utils.i18n :as i18n] | ||
[utils.re-frame :as rf])) | ||
|
||
|
@@ -14,7 +13,8 @@ | |
(let [window-width (rf/sub [:dimensions/window-width]) | ||
item-width (- (/ window-width 2) link-card-space) | ||
{:keys [collectible-data]} (rf/sub [:wallet/last-collectible-details]) | ||
link-card-container-style (style/link-card item-width)] | ||
link-card-container-style (style/link-card item-width) | ||
collectible-about {:cards []}] | ||
[:<> | ||
[rn/view {:style style/title} | ||
[quo/text | ||
|
@@ -25,12 +25,13 @@ | |
[quo/text | ||
{:size :paragraph-2} | ||
(:description collectible-data)]] | ||
[quo/section-label | ||
{:container-style style/section-label | ||
:section (i18n/label :t/on-the-web)}] | ||
[rn/view {:style style/link-cards-container} | ||
(for [item (:cards temp/collectible-about)] | ||
^{:key (:title item)} | ||
[quo/link-card (assoc item :container-style link-card-container-style)])]])) | ||
(when (count collectible-about) | ||
[quo/section-label | ||
{:container-style style/section-label | ||
:section (i18n/label :t/on-the-web)}] | ||
[rn/view {:style style/link-cards-container} | ||
(for [item (:cards collectible-about)] | ||
^{:key (:title item)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a blocker: I know this is not from your PR. I have a feeling that using the name of the collectable as the key is not a good idea as it may have the same names. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any suggestions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe |
||
[quo/link-card (assoc item :container-style link-card-container-style)])])])) | ||
|
||
(def view (quo.theme/with-theme view-internal)) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
(ns status-im.contexts.wallet.collectible.tabs.activity.view | ||
(:require [quo.core :as quo] | ||
[react-native.core :as rn] | ||
[status-im.contexts.wallet.temp :as temp])) | ||
[react-native.core :as rn])) | ||
|
||
(defn activity-item | ||
[item] | ||
|
@@ -12,6 +11,6 @@ | |
(defn view | ||
[] | ||
[rn/flat-list | ||
{:data temp/collectible-activities | ||
{:data nil | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe add a TODO here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah sure, I'll create the issues for the code removed so the data structure is easy to track 👍 |
||
:style {:flex 1} | ||
:render-fn activity-item}]) |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!