From e89aaba312de14dd0f17f1ab9f9e26eaa46d20ad Mon Sep 17 00:00:00 2001 From: mike-dydx <149746839+mike-dydx@users.noreply.github.com> Date: Thu, 6 Jun 2024 16:51:48 -0400 Subject: [PATCH] do not render svgs (#185) * do not render svgs * remove trading rewards feature flag * set abacus historical trading reward period properly --- .../_Utils/dydxFeatureFlag.swift | 3 +-- .../dydxPresenters/_Features/features.json | 20 --------------- .../dydxRewardsHistoryViewPresenter.swift | 22 +++++++++++++--- .../dydxTransferSearchViewBuilder.swift | 25 +++++++++++-------- .../dydxStateManager/AbacusStateManager.swift | 4 +++ .../_v4/Profile/dydxProfileView.swift | 6 ++--- .../Search/dydxTransferSearchItemView.swift | 2 +- 7 files changed, 41 insertions(+), 41 deletions(-) diff --git a/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift b/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift index a47aa871f..55eddaba5 100644 --- a/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift +++ b/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift @@ -12,7 +12,6 @@ import Utilities public enum dydxBoolFeatureFlag: String, CaseIterable { case push_notification case force_mainnet - case enable_trading_rewards case enable_app_rating case enable_isolated_margins @@ -25,7 +24,7 @@ public enum dydxBoolFeatureFlag: String, CaseIterable { switch self { case .enable_app_rating: return Self.obj.parser.asBoolean(FeatureService.shared?.flag(feature: rawValue))?.boolValue ?? true - case .push_notification, .force_mainnet, .enable_trading_rewards, .enable_isolated_margins: + case .push_notification, .force_mainnet, .enable_isolated_margins: return Self.obj.parser.asBoolean(FeatureService.shared?.flag(feature: rawValue))?.boolValue ?? false } } diff --git a/dydx/dydxPresenters/dydxPresenters/_Features/features.json b/dydx/dydxPresenters/dydxPresenters/_Features/features.json index 018ebf311..7a13d7891 100644 --- a/dydx/dydxPresenters/dydxPresenters/_Features/features.json +++ b/dydx/dydxPresenters/dydxPresenters/_Features/features.json @@ -33,26 +33,6 @@ ] } }, - { - "title":{ - "text":"Enable Trading Rewards" - }, - "field":{ - "field":"enable_trading_rewards", - "optional":true, - "type" : "text", - "options" : [ - { - "text": "yes", - "value" : "1" - }, - { - "text": "no", - "value" : "0" - } - ] - } - }, { "title":{ "text":"Push Notification" diff --git a/dydx/dydxPresenters/dydxPresenters/_v4/Profile/TradingRewards/Components/dydxRewardsHistoryViewPresenter.swift b/dydx/dydxPresenters/dydxPresenters/_v4/Profile/TradingRewards/Components/dydxRewardsHistoryViewPresenter.swift index 7e09b74e2..a8f128703 100644 --- a/dydx/dydxPresenters/dydxPresenters/_v4/Profile/TradingRewards/Components/dydxRewardsHistoryViewPresenter.swift +++ b/dydx/dydxPresenters/dydxPresenters/_v4/Profile/TradingRewards/Components/dydxRewardsHistoryViewPresenter.swift @@ -36,6 +36,17 @@ public class dydxRewardsHistoryViewPresenter: HostedViewPresenter Void)? - @Published public var icon: PlatformIconViewModel? + @Published public var icon: PlatformViewModel? @Published public var text: String? @Published public var tokenText: TokenTextViewModel? @Published public var isSelected: Bool = false