From 21c3cf1c6e61a2588adebffb5ab39addd1add2a0 Mon Sep 17 00:00:00 2001 From: Martin Cayuelas Date: Mon, 2 Dec 2024 13:54:41 +0100 Subject: [PATCH] chore: feature_llm_market_coin_quick_actions FF removed --- .changeset/red-buttons-divide.md | 7 ++++ .../FabActions/actionsList/market/index.tsx | 39 ------------------- .../Market/screens/MarketDetail/index.tsx | 24 +----------- .../src/featureFlags/defaultFeatures.ts | 1 - .../packages/types-live/src/feature.ts | 1 - 5 files changed, 8 insertions(+), 64 deletions(-) create mode 100644 .changeset/red-buttons-divide.md delete mode 100644 apps/ledger-live-mobile/src/components/FabActions/actionsList/market/index.tsx diff --git a/.changeset/red-buttons-divide.md b/.changeset/red-buttons-divide.md new file mode 100644 index 000000000000..75c25caab0f7 --- /dev/null +++ b/.changeset/red-buttons-divide.md @@ -0,0 +1,7 @@ +--- +"@ledgerhq/types-live": minor +"live-mobile": minor +"@ledgerhq/live-common": minor +--- + +Remove feature_llm_market_coin_quick_actions FF diff --git a/apps/ledger-live-mobile/src/components/FabActions/actionsList/market/index.tsx b/apps/ledger-live-mobile/src/components/FabActions/actionsList/market/index.tsx deleted file mode 100644 index 0d45d8472ebf..000000000000 --- a/apps/ledger-live-mobile/src/components/FabActions/actionsList/market/index.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import React, { memo } from "react"; - -import { AccountLike, Account } from "@ledgerhq/types-live"; -import { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets"; -import useAssetActions from "../../hooks/useAssetActions"; -import { FabButtonBarProvider } from "../../index"; -import FabButtonBar from "../../FabButtonBar"; - -type Props = { - defaultAccount?: AccountLike; - parentAccount?: Account; - currency?: CryptoCurrency | TokenCurrency; - accounts?: AccountLike[]; - eventProperties?: { [key: string]: unknown }; -}; - -const FabMarketActionsComponent: React.FC = ({ - currency, - accounts, - defaultAccount, - eventProperties, -}) => { - const { mainActions } = useAssetActions({ - currency, - accounts, - }); - - return ( - - {({ quickActions }) => } - - ); -}; - -export const FabMarketActions = memo(FabMarketActionsComponent); diff --git a/apps/ledger-live-mobile/src/newArch/features/Market/screens/MarketDetail/index.tsx b/apps/ledger-live-mobile/src/newArch/features/Market/screens/MarketDetail/index.tsx index c85db7b8fb61..5913b41f9cf7 100644 --- a/apps/ledger-live-mobile/src/newArch/features/Market/screens/MarketDetail/index.tsx +++ b/apps/ledger-live-mobile/src/newArch/features/Market/screens/MarketDetail/index.tsx @@ -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"; @@ -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"; @@ -49,7 +47,6 @@ function View({ loading, loadingChart, refresh, - defaultAccount, toggleStar, currency, dataChart, @@ -138,21 +135,6 @@ function View({ )} - - {internalCurrency ? ( - - - - } - /> - ) : null} } refreshControl={ @@ -173,11 +155,7 @@ function View({ currency={internalCurrency} /> - {internalCurrency && ( - - - - )} + {internalCurrency && } {accounts?.length > 0 ? ( diff --git a/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts b/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts index 6656a08f7986..128f9a9c27b4 100644 --- a/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts +++ b/libs/ledger-live-common/src/featureFlags/defaultFeatures.ts @@ -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, diff --git a/libs/ledgerjs/packages/types-live/src/feature.ts b/libs/ledgerjs/packages/types-live/src/feature.ts index 51f1676513d5..21e6ce77eed1 100644 --- a/libs/ledgerjs/packages/types-live/src/feature.ts +++ b/libs/ledgerjs/packages/types-live/src/feature.ts @@ -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;