Skip to content

Commit

Permalink
chore: feature_llm_market_coin_quick_actions FF removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mcayuelas-ledger committed Dec 23, 2024
1 parent e5c957b commit 21c3cf1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 64 deletions.
7 changes: 7 additions & 0 deletions .changeset/red-buttons-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@ledgerhq/types-live": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
---

Remove feature_llm_market_coin_quick_actions FF

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { memo, useMemo, useState } from "react";
import { useTheme } from "styled-components/native";
import FeatureToggle from "@ledgerhq/live-common/featureFlags/FeatureToggle";
import { Flex, ScrollContainerHeader, Text } from "@ledgerhq/native-ui";
import { FlatList, Image, RefreshControl } from "react-native";
import { useTranslation } from "react-i18next";
Expand All @@ -17,7 +16,6 @@ import Button from "~/components/wrappedUi/Button";
import MarketGraph from "./components/MarketGraph";
import { ScreenName } from "~/const";
import { withDiscreetMode } from "~/context/DiscreetModeContext";
import { FabMarketActions } from "~/components/FabActions/actionsList/market";
import { MarketQuickActions } from "~/components/MarketQuickActions";
import BackButton from "./components/BackButton";
import { Item } from "~/components/Graph/types";
Expand Down Expand Up @@ -49,7 +47,6 @@ function View({
loading,
loadingChart,
refresh,
defaultAccount,
toggleStar,
currency,
dataChart,
Expand Down Expand Up @@ -138,21 +135,6 @@ function View({
)}
</Flex>
</Flex>

{internalCurrency ? (
<FeatureToggle
featureId="llmMarketQuickActions"
fallback={
<Flex mb={6}>
<FabMarketActions
defaultAccount={defaultAccount}
currency={internalCurrency}
accounts={accounts}
/>
</Flex>
}
/>
) : null}
</>
}
refreshControl={
Expand All @@ -173,11 +155,7 @@ function View({
currency={internalCurrency}
/>

{internalCurrency && (
<FeatureToggle featureId="llmMarketQuickActions">
<MarketQuickActions currency={internalCurrency} accounts={accounts} />
</FeatureToggle>
)}
{internalCurrency && <MarketQuickActions currency={internalCurrency} accounts={accounts} />}

{accounts?.length > 0 ? (
<Flex mx={6} mt={8}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@ export const DEFAULT_FEATURES: Features = {
lldnewArchOrdinals: DEFAULT_FEATURE,
enableAppsBackup: DEFAULT_FEATURE,
web3hub: DEFAULT_FEATURE,
llmMarketQuickActions: DEFAULT_FEATURE,
spamFilteringTx: DEFAULT_FEATURE,
llmMemoTag: DEFAULT_FEATURE,
lldMemoTag: DEFAULT_FEATURE,
Expand Down
1 change: 0 additions & 1 deletion libs/ledgerjs/packages/types-live/src/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ export type Features = CurrencyFeatures & {
lldnewArchOrdinals: DefaultFeature;
enableAppsBackup: Feature_EnableAppsBackup;
web3hub: Feature_web3hub;
llmMarketQuickActions: DefaultFeature;
spamFilteringTx: Feature_SpamFilteringTx;
llmMemoTag: Feature_MemoTag;
lldMemoTag: Feature_MemoTag;
Expand Down

0 comments on commit 21c3cf1

Please sign in to comment.