diff --git a/.changeset/light-news-cross.md b/.changeset/light-news-cross.md new file mode 100644 index 000000000000..33850154cb7e --- /dev/null +++ b/.changeset/light-news-cross.md @@ -0,0 +1,8 @@ +--- +"live-mobile": patch +"@ledgerhq/native-ui": patch +"@ledgerhq/icons-ui": patch +"@ledgerhq/react-ui": patch +--- + +UILib - New icons + renamed old icon set to Legacy (should not be used anymore by consumers eg LLD and LLM) diff --git a/apps/ledger-live-desktop/src/renderer/components/AnalyticsConsole/index.tsx b/apps/ledger-live-desktop/src/renderer/components/AnalyticsConsole/index.tsx index 7bc8ac94475f..2f53a4f7b0ae 100644 --- a/apps/ledger-live-desktop/src/renderer/components/AnalyticsConsole/index.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/AnalyticsConsole/index.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useState } from "react"; import styled from "styled-components"; import EventList from "./EventList"; import StyleProviderV3 from "~/renderer/styles/StyleProviderV3"; -import { Divider, Flex, Icons, Switch, Text } from "@ledgerhq/react-ui"; +import { Divider, Flex, IconsLegacy, Switch, Text } from "@ledgerhq/react-ui"; const Root = styled.div` position: fixed; @@ -102,13 +102,13 @@ function AnalyticsConsole() { {position === "left" ? ( - + ) : ( - + )} - + diff --git a/apps/ledger-live-desktop/src/renderer/components/ChangeDeviceLanguageAction.tsx b/apps/ledger-live-desktop/src/renderer/components/ChangeDeviceLanguageAction.tsx index 6756a4781099..77e72d83f963 100644 --- a/apps/ledger-live-desktop/src/renderer/components/ChangeDeviceLanguageAction.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/ChangeDeviceLanguageAction.tsx @@ -6,7 +6,7 @@ import { mockedEventEmitter } from "~/renderer/components/debug/DebugMock"; import DeviceAction from "./DeviceAction"; import { Language } from "@ledgerhq/types-live"; import { useTranslation } from "react-i18next"; -import { BoxedIcon, Flex, Icons, Text } from "@ledgerhq/react-ui"; +import { BoxedIcon, Flex, IconsLegacy, Text } from "@ledgerhq/react-ui"; import { withV3StyleProvider } from "~/renderer/styles/StyleProviderV3"; const action = createAction(getEnv("MOCK") ? mockedEventEmitter : installLanguage); @@ -22,7 +22,12 @@ const DeviceLanguageInstalled = ({ language }: { language: Language }) => { justifyContent="center" data-test-id="language-installed" > - + {t("deviceLocalization.languageInstalled", { language: t(`deviceLocalization.languages.${language}`), diff --git a/apps/ledger-live-desktop/src/renderer/components/ContextMenu/AccountContextMenu.tsx b/apps/ledger-live-desktop/src/renderer/components/ContextMenu/AccountContextMenu.tsx index b127f251fcf4..dddae04256de 100644 --- a/apps/ledger-live-desktop/src/renderer/components/ContextMenu/AccountContextMenu.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/ContextMenu/AccountContextMenu.tsx @@ -18,7 +18,7 @@ import { isCurrencySupported } from "~/renderer/screens/exchange/config"; import { setTrackingSource } from "~/renderer/analytics/TrackPage"; import { useFeature } from "@ledgerhq/live-common/featureFlags/index"; import { ContextMenuItemType } from "./ContextMenuWrapper"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; type Props = { account: AccountLike; @@ -159,7 +159,7 @@ export default function AccountContextMenu({ if (account.type === "TokenAccount") { items.push({ label: "accounts.contextMenu.hideToken", - Icon: Icons.NoneMedium, + Icon: IconsLegacy.NoneMedium, id: "token-menu-hide", callback: () => dispatch( diff --git a/apps/ledger-live-desktop/src/renderer/components/ContextMenu/NFTCollectionContextMenu.tsx b/apps/ledger-live-desktop/src/renderer/components/ContextMenu/NFTCollectionContextMenu.tsx index 2dd6a6fccf95..d0633a17ed5a 100644 --- a/apps/ledger-live-desktop/src/renderer/components/ContextMenu/NFTCollectionContextMenu.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/ContextMenu/NFTCollectionContextMenu.tsx @@ -6,7 +6,7 @@ import { openModal } from "~/renderer/actions/modals"; import ContextMenuItem from "./ContextMenuItem"; import { setDrawer } from "~/renderer/drawers/Provider"; import { Account } from "@ledgerhq/types-live"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; type Props = { account: Account; collectionAddress: string; @@ -30,7 +30,7 @@ export default function NFTCollectionContextMenu({ { key: "hide", label: t("hideNftCollection.hideCTA"), - Icon: Icons.NoneMedium, + Icon: IconsLegacy.NoneMedium, callback: () => dispatch( openModal("MODAL_HIDE_NFT_COLLECTION", { diff --git a/apps/ledger-live-desktop/src/renderer/components/CustomImage/CustomImageDeviceAction.tsx b/apps/ledger-live-desktop/src/renderer/components/CustomImage/CustomImageDeviceAction.tsx index e2f3e02235c6..5210684e2dc1 100644 --- a/apps/ledger-live-desktop/src/renderer/components/CustomImage/CustomImageDeviceAction.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/CustomImage/CustomImageDeviceAction.tsx @@ -7,7 +7,7 @@ import { ImageLoadRefusedOnDevice, ImageCommitRefusedOnDevice } from "@ledgerhq/ import withRemountableWrapper from "@ledgerhq/live-common/hoc/withRemountableWrapper"; import { getEnv } from "@ledgerhq/live-common/env"; import { useTranslation } from "react-i18next"; -import { Theme, Flex, Icons } from "@ledgerhq/react-ui"; +import { Theme, Flex, IconsLegacy } from "@ledgerhq/react-ui"; import useTheme from "~/renderer/hooks/useTheme"; import { DeviceActionDefaultRendering } from "../DeviceAction"; import Button from "../ButtonV3"; @@ -123,7 +123,7 @@ const CustomImageDeviceAction: React.FC = withRemountableWrapper(props => error, device: device ?? undefined, ...(isRefusedOnStaxError - ? { Icon: Icons.CircledAlertMedium, iconColor: "warning.c50" } + ? { Icon: IconsLegacy.CircledAlertMedium, iconColor: "warning.c50" } : {}), })} {inlineRetry ? ( diff --git a/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImageCropper.tsx b/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImageCropper.tsx index aed551e77618..e57bb5f595bb 100644 --- a/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImageCropper.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImageCropper.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useEffect, useRef, useState } from "react"; import { ImageBase64Data, ImageDimensions } from "./types"; import { useDebounce } from "@ledgerhq/live-common/hooks/useDebounce"; -import { Button, Flex, Icons } from "@ledgerhq/react-ui"; +import { Button, Flex, IconsLegacy } from "@ledgerhq/react-ui"; import Cropper, { Area, CropperProps } from "react-easy-crop"; import { createCanvas, getRadianAngle, rotateSize } from "./imageUtils"; import { ImageCropError } from "@ledgerhq/live-common/customImage/errors"; @@ -256,7 +256,7 @@ const ImageCropper: React.FC = props => { outline backgroundColor="transparent" onClick={rotateCounterClockwise} - Icon={Icons.ReverseMedium} + Icon={IconsLegacy.ReverseMedium} data-test-id="custom-image-crop-rotate-button" > Rotate diff --git a/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportImage.tsx b/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportImage.tsx index 682919f89fdc..1c373e2938bf 100644 --- a/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportImage.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportImage.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from "react"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; import { ImageIncorrectFileTypeError, ImageLoadFromFileError, @@ -74,7 +74,7 @@ const ImportImage: React.FC = ({ setLoading, onResult, onError, onClick } return ( diff --git a/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportNFTButton.tsx b/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportNFTButton.tsx index c0363f98becf..3ad33114a0b1 100644 --- a/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportNFTButton.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/CustomImage/ImportNFTButton.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; import ImportButton from "./ImportButton"; import { useTranslation } from "react-i18next"; @@ -13,7 +13,7 @@ const ImportNFTButton: React.FC = ({ onClick }) => { return ( diff --git a/apps/ledger-live-desktop/src/renderer/components/ErrorIcon.tsx b/apps/ledger-live-desktop/src/renderer/components/ErrorIcon.tsx index 5f80efa17517..fc6511b6203b 100644 --- a/apps/ledger-live-desktop/src/renderer/components/ErrorIcon.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/ErrorIcon.tsx @@ -18,7 +18,7 @@ import { LanguageInstallRefusedOnDevice, ImageDoesNotExistOnDevice, } from "@ledgerhq/live-common/errors"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; export type ErrorIconProps = { error: unknown; @@ -41,7 +41,7 @@ const ErrorIcon = ({ error, size = 44 }: ErrorIconProps) => { error instanceof ImageDoesNotExistOnDevice || error instanceof UserRefusedDeviceNameChange ) { - return ; + return ; } if (error instanceof SwapGenericAPIError || error instanceof NoSuchAppOnProvider) { diff --git a/apps/ledger-live-desktop/src/renderer/components/FirmwareUpdateBanner.tsx b/apps/ledger-live-desktop/src/renderer/components/FirmwareUpdateBanner.tsx index 7c8326ec705b..d309b10b6a7f 100644 --- a/apps/ledger-live-desktop/src/renderer/components/FirmwareUpdateBanner.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/FirmwareUpdateBanner.tsx @@ -10,7 +10,7 @@ import { UpdaterContext } from "~/renderer/components/Updater/UpdaterContext"; import { shouldUpdateYet } from "~/helpers/user"; import { useRemoteConfig } from "~/renderer/components/RemoteConfig"; import { VISIBLE_STATUS } from "./Updater/Banner"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; const FirmwareUpdateBanner = ({ old, right }: { old?: boolean; right?: React.ReactNode }) => { const history = useHistory(); const location = useLocation(); @@ -43,7 +43,7 @@ const FirmwareUpdateBanner = ({ old, right }: { old?: boolean; right?: React.Rea { }} onClick={() => setTrackingSource("sidebar")} > - + {t("common.featureFlags")} ) : null; @@ -361,7 +361,7 @@ const MainSideBar = () => { { { { { { { { { { { { { { ({ @@ -12,7 +12,7 @@ export default function CloseButton({ onClick }: { onClick: () => void }) { return ( - + ); diff --git a/apps/ledger-live-desktop/src/renderer/components/ModalStepper/StepLeftSide.tsx b/apps/ledger-live-desktop/src/renderer/components/ModalStepper/StepLeftSide.tsx index 35ca8eea9bd7..33281a46e063 100644 --- a/apps/ledger-live-desktop/src/renderer/components/ModalStepper/StepLeftSide.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/ModalStepper/StepLeftSide.tsx @@ -1,6 +1,6 @@ import React from "react"; import styled from "styled-components"; -import { Button, Icons, Flex, Text } from "@ledgerhq/react-ui"; +import { Button, IconsLegacy, Flex, Text } from "@ledgerhq/react-ui"; const Container = styled(Flex).attrs(() => ({ flexDirection: "column", @@ -62,7 +62,7 @@ const StepLeftSide = ({ data-test-id={dataTestId} disabled={continueDisabled} variant="main" - Icon={Icons.ArrowRightMedium} + Icon={IconsLegacy.ArrowRightMedium} onClick={onClickContinue} > {continueLabel} diff --git a/apps/ledger-live-desktop/src/renderer/components/Nft/CollectionName.tsx b/apps/ledger-live-desktop/src/renderer/components/Nft/CollectionName.tsx index 0e81b50cf03a..300d7867871c 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Nft/CollectionName.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Nft/CollectionName.tsx @@ -4,7 +4,7 @@ import { Account, ProtoNFT } from "@ledgerhq/types-live"; import NFTCollectionContextMenu from "~/renderer/components/ContextMenu/NFTCollectionContextMenu"; import Skeleton from "~/renderer/components/Nft/Skeleton"; import styled from "styled-components"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; const Dots = styled.div` justify-content: flex-end; display: flex; @@ -42,7 +42,7 @@ const CollectionName = ({ nft, fallback, account, showHideMenu }: Props) => { leftClick={true} > - + )} diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/HideRecoverySeed.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/HideRecoverySeed.tsx index 4f883d0e5265..e894208a8c12 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/HideRecoverySeed.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/HideRecoverySeed.tsx @@ -1,6 +1,6 @@ import React from "react"; import { useTranslation, Trans } from "react-i18next"; -import { Flex, Text, Button, Icons } from "@ledgerhq/react-ui"; +import { Flex, Text, Button, IconsLegacy } from "@ledgerhq/react-ui"; import styled from "styled-components"; import IconCross from "~/renderer/icons/Cross"; import IconCheck from "~/renderer/icons/Check"; @@ -120,7 +120,7 @@ export function HideRecoverySeed(props: { handleNextInDrawer: () => void }) { width="248px" variant="main" onClick={props.handleNextInDrawer} - Icon={() => } + Icon={() => } > {t("onboarding.screens.welcome.nextButton")} diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/PinHelp.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/PinHelp.tsx index b343d88df121..2d8dbf5fc944 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/PinHelp.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/PinHelp.tsx @@ -1,6 +1,6 @@ import React from "react"; import { useTranslation, Trans } from "react-i18next"; -import { Flex, Text, Button, Icons } from "@ledgerhq/react-ui"; +import { Flex, Text, Button, IconsLegacy } from "@ledgerhq/react-ui"; import styled from "styled-components"; import IconCross from "~/renderer/icons/Cross"; import IconCheck from "~/renderer/icons/Check"; @@ -123,7 +123,7 @@ export function PinHelp(props: { handleNextInDrawer: () => void }) { width="248px" variant="main" onClick={props.handleNextInDrawer} - Icon={() => } + Icon={() => } > {t("onboarding.screens.welcome.nextButton")} diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/RecoverySeed.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/RecoverySeed.tsx index 33c73a9f569e..ea589328beaf 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/RecoverySeed.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Help/RecoverySeed.tsx @@ -1,6 +1,6 @@ import React, { useCallback } from "react"; import { useTranslation } from "react-i18next"; -import { Flex, Text, Button, Icons } from "@ledgerhq/react-ui"; +import { Flex, Text, Button, IconsLegacy } from "@ledgerhq/react-ui"; import styled from "styled-components"; import { ScrollArea } from "~/renderer/components/Onboarding/ScrollArea"; import FakeLink from "~/renderer/components/FakeLink"; @@ -86,7 +86,7 @@ export function RecoverySeed(props: { handleNextInDrawer: () => void }) { mt="auto" variant="main" onClick={props.handleNextInDrawer} - Icon={() => } + Icon={() => } > {t("onboarding.screens.welcome.nextButton")} diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/OnboardingNavHeader.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/OnboardingNavHeader.tsx index 510f8f203c4a..f065c2473422 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/OnboardingNavHeader.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/OnboardingNavHeader.tsx @@ -1,6 +1,6 @@ import React from "react"; import styled from "styled-components"; -import { Box, Button, Header, Icons } from "@ledgerhq/react-ui"; +import { Box, Button, Header, IconsLegacy } from "@ledgerhq/react-ui"; import LangSwitcher from "./LangSwitcher"; import ledgerLogo from "./assets/ledgerLogo.svg"; import { registerAssets } from "~/renderer/components/Onboarding/preloadAssets"; @@ -35,7 +35,7 @@ interface Props { export default function OnboardingNavHeader({ onClickPrevious }: Props) { const { t } = useTranslation(); const left = ( - ); diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/SelectUseCase/UseCaseOption.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/SelectUseCase/UseCaseOption.tsx index 717d6a69d150..de076c7ff892 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/SelectUseCase/UseCaseOption.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/SelectUseCase/UseCaseOption.tsx @@ -1,6 +1,6 @@ import React from "react"; import styled from "styled-components"; -import { Flex, Button, Text, Icons } from "@ledgerhq/react-ui"; +import { Flex, Button, Text, IconsLegacy } from "@ledgerhq/react-ui"; const IllustrationContainer = styled(Flex).attrs({ flexDirection: "column", @@ -19,7 +19,7 @@ const DescriptionText = styled(Text).attrs(() => ({}))``; const ArrowButton = styled(Button).attrs(() => ({ variant: "main", size: "medium", - Icon: Icons.ArrowRightMedium, + Icon: IconsLegacy.ArrowRightMedium, iconButton: true, }))` margin-top: 27px; diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/index.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/index.tsx index 4f30306f28b3..dfc2a0d0fc9f 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/index.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/index.tsx @@ -3,7 +3,7 @@ import { Button, Drawer, Flex, - Icons, + IconsLegacy, InfiniteLoader, Logos, ProgressBar, @@ -151,7 +151,7 @@ const FlowStepper: React.FC = ({ disabled={disableBack} variant="main" outline - Icon={() => } + Icon={() => } > {backLabel || t("common.back")} @@ -161,7 +161,7 @@ const FlowStepper: React.FC = ({ disabled={continueLoading || continueDisabled} variant="main" iconSize={18} - Icon={continueLoading ? InfiniteLoader : Icons.ArrowRightMedium} + Icon={continueLoading ? InfiniteLoader : IconsLegacy.ArrowRightMedium} > {continueLabel || t("common.continue")} diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/HideRecoveryPhrase.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/HideRecoveryPhrase.tsx index 5520c94bc03f..02eea595aa8a 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/HideRecoveryPhrase.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/HideRecoveryPhrase.tsx @@ -9,7 +9,7 @@ import { IllustrationContainer, AsideFooter, } from "../shared"; -import { Button, Icons } from "@ledgerhq/react-ui"; +import { Button, IconsLegacy } from "@ledgerhq/react-ui"; import hideRecoverySheet from "../assets/hideRecoverySheet.png"; type Props = { handleHelp: () => void; @@ -33,7 +33,12 @@ export function HideRecoveryPhrase({ handleHelp }: Props) { text={t("onboarding.screens.tutorial.screens.hideRecoveryPhrase.neverShowToAnyone")} /> - diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/RecoverHowTo.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/RecoverHowTo.tsx index cfd297a556cb..841e1b9675ce 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/RecoverHowTo.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Tutorial/screens/RecoverHowTo.tsx @@ -9,7 +9,7 @@ import { useTheme } from "styled-components"; import Animation from "~/renderer/animations"; import { getDeviceAnimation } from "~/renderer/components/DeviceAction/animations"; import { OnboardingContext } from "../../../index"; -import { Icons, Link, Box, Button, Popin, Text } from "@ledgerhq/react-ui"; +import { IconsLegacy, Link, Box, Button, Popin, Text } from "@ledgerhq/react-ui"; import { useSelector } from "react-redux"; import { languageSelector } from "~/renderer/reducers/settings"; import { openURL } from "~/renderer/linking"; @@ -53,7 +53,7 @@ export function RecoverHowTo() { ))} - setIsDrawerOpen(true)}> + setIsDrawerOpen(true)}> @@ -71,12 +71,17 @@ export function RecoverHowTo() { - + diff --git a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Welcome/index.tsx b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Welcome/index.tsx index 3d2c3d56e76b..d4d2df9be1c1 100644 --- a/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Welcome/index.tsx +++ b/apps/ledger-live-desktop/src/renderer/components/Onboarding/Screens/Welcome/index.tsx @@ -7,7 +7,7 @@ import { openURL } from "~/renderer/linking"; import LangSwitcher from "~/renderer/components/Onboarding/LangSwitcher"; import { urls } from "~/config/urls"; import { acceptTerms } from "~/renderer/terms"; -import { Text, Button, Logos, Icons, InvertThemeV3, Flex } from "@ledgerhq/react-ui"; +import { Text, Button, Logos, IconsLegacy, InvertThemeV3, Flex } from "@ledgerhq/react-ui"; import { saveSettings } from "~/renderer/actions/settings"; import BuyNanoX from "./assets/buyNanoX.webm"; import { hasCompletedOnboardingSelector, languageSelector } from "~/renderer/reducers/settings"; @@ -185,7 +185,7 @@ export function Welcome() { )} diff --git a/apps/ledger-live-desktop/src/renderer/families/ethereum/StakeFlowModal/component/ProviderItem.tsx b/apps/ledger-live-desktop/src/renderer/families/ethereum/StakeFlowModal/component/ProviderItem.tsx index feede9032e74..9b43d5dd91fe 100644 --- a/apps/ledger-live-desktop/src/renderer/families/ethereum/StakeFlowModal/component/ProviderItem.tsx +++ b/apps/ledger-live-desktop/src/renderer/families/ethereum/StakeFlowModal/component/ProviderItem.tsx @@ -1,5 +1,5 @@ import React, { useCallback, useEffect, useMemo } from "react"; -import { Flex, Text, Icons, Link, Icon, Tag as TagCore } from "@ledgerhq/react-ui"; +import { Flex, Text, IconsLegacy, Link, Icon, Tag as TagCore } from "@ledgerhq/react-ui"; import { useLocalLiveAppManifest } from "@ledgerhq/live-common/platform/providers/LocalLiveAppProvider/index"; import { useRemoteLiveAppManifest } from "@ledgerhq/live-common/platform/providers/RemoteLiveAppProvider/index"; import { useTranslation } from "react-i18next"; @@ -94,7 +94,7 @@ const ProviderItem = ({ provider, infoOnClick, stakeOnClick, redirectIfOnlyProvi { }} > - + )} diff --git a/apps/ledger-live-desktop/src/renderer/hooks/useNftLinks.ts b/apps/ledger-live-desktop/src/renderer/hooks/useNftLinks.ts index 8c5518b5b5a5..118750dd55e7 100644 --- a/apps/ledger-live-desktop/src/renderer/hooks/useNftLinks.ts +++ b/apps/ledger-live-desktop/src/renderer/hooks/useNftLinks.ts @@ -3,7 +3,7 @@ import { useDispatch } from "react-redux"; import { TFunction, useTranslation } from "react-i18next"; import { Account, ProtoNFT, NFTMetadata, NFTMedias } from "@ledgerhq/types-live"; import { useFeature } from "@ledgerhq/live-common/featureFlags/index"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; import { openModal } from "~/renderer/actions/modals"; import IconOpensea from "~/renderer/icons/Opensea"; import IconRarible from "~/renderer/icons/Rarible"; @@ -52,7 +52,7 @@ const linksPerCurrency: Record< label: t("NFT.viewer.actions.open", { viewer: "Explorer", }), - Icon: Icons.GlobeMedium, + Icon: IconsLegacy.GlobeMedium, type: "external", callback: () => openURL(links.explorer), }, @@ -87,7 +87,7 @@ const linksPerCurrency: Record< label: t("NFT.viewer.actions.open", { viewer: "Explorer", }), - Icon: Icons.GlobeMedium, + Icon: IconsLegacy.GlobeMedium, type: "external", callback: () => openURL(links.explorer), }, @@ -107,7 +107,7 @@ export default ( () => ({ id: "hide-collection", label: t("hideNftCollection.hideCTA"), - Icon: Icons.NoneMedium, + Icon: IconsLegacy.NoneMedium, callback: () => { return dispatch( openModal("MODAL_HIDE_NFT_COLLECTION", { @@ -136,7 +136,7 @@ export default ( const img: ContextMenuItemType = { id: "custom-image", label: t("customImage.cta"), - Icon: Icons.PhotographMedium, + Icon: IconsLegacy.PhotographMedium, callback: () => { if (customImageUri) setDrawer( diff --git a/apps/ledger-live-desktop/src/renderer/icons/Bell.tsx b/apps/ledger-live-desktop/src/renderer/icons/Bell.tsx index 37a6be2d9444..30f162225ca2 100644 --- a/apps/ledger-live-desktop/src/renderer/icons/Bell.tsx +++ b/apps/ledger-live-desktop/src/renderer/icons/Bell.tsx @@ -1,4 +1,4 @@ -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; import React from "react"; import styled from "styled-components"; const Container = styled.div` @@ -26,7 +26,7 @@ const NotifBadge = styled.div` const BellIcon = ({ size, count }: { size: number; count?: number }) => { return ( - + {count && count > 0 ? {count} : null} ); diff --git a/apps/ledger-live-desktop/src/renderer/modals/OnboardingQuizz/StartScreen.tsx b/apps/ledger-live-desktop/src/renderer/modals/OnboardingQuizz/StartScreen.tsx index 6dcc57b8ccff..faef64fb493f 100644 --- a/apps/ledger-live-desktop/src/renderer/modals/OnboardingQuizz/StartScreen.tsx +++ b/apps/ledger-live-desktop/src/renderer/modals/OnboardingQuizz/StartScreen.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { BoxedIcon, Flex, Icons, Text, Button } from "@ledgerhq/react-ui"; +import { BoxedIcon, Flex, IconsLegacy, Text, Button } from "@ledgerhq/react-ui"; import { useTranslation } from "react-i18next"; type Props = { @@ -18,7 +18,7 @@ const StartScreen = ({ onStart }: Props) => { > { diff --git a/apps/ledger-live-desktop/src/renderer/screens/asset/AccountDistribution/Row.tsx b/apps/ledger-live-desktop/src/renderer/screens/asset/AccountDistribution/Row.tsx index dc6247511d51..81ae5b4f0ac0 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/asset/AccountDistribution/Row.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/asset/AccountDistribution/Row.tsx @@ -19,7 +19,7 @@ import Bar from "~/renderer/screens/dashboard/AssetDistribution/Bar"; import ToolTip from "~/renderer/components/Tooltip"; import useTheme from "~/renderer/hooks/useTheme"; import { setTrackingSource } from "~/renderer/analytics/TrackPage"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; export type AccountDistributionItem = { account: AccountLike; distribution: number; @@ -115,7 +115,7 @@ export default function Row({ - + diff --git a/apps/ledger-live-desktop/src/renderer/screens/customImage/index.tsx b/apps/ledger-live-desktop/src/renderer/screens/customImage/index.tsx index 593442b0e822..c7e999530878 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/customImage/index.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/customImage/index.tsx @@ -6,7 +6,7 @@ import React, { useMemo, useState, } from "react"; -import { BoxedIcon, Flex, FlowStepper, Icons, Text } from "@ledgerhq/react-ui"; +import { BoxedIcon, Flex, FlowStepper, IconsLegacy, Text } from "@ledgerhq/react-ui"; import { useDispatch } from "react-redux"; import { ImageDownloadError } from "@ledgerhq/live-common/customImage/errors"; import { PostOnboardingActionId } from "@ledgerhq/types-live"; @@ -305,7 +305,7 @@ const CustomImage: React.FC = props => { /> { return ( } + Icon={() => } title={t("dashboard.featuredButtons.buySell.title")} body={t("dashboard.featuredButtons.buySell.description")} onClick={handleClickExchange} entryButtonTestId="buy-sell-entry-button" /> } + Icon={() => } title={t("dashboard.featuredButtons.swap.title")} body={t("dashboard.featuredButtons.swap.description")} label={t("dashboard.featuredButtons.swap.label")} @@ -65,7 +65,7 @@ const FeaturedButtons = () => { entryButtonTestId="swap-entry-button" /> } + Icon={() => } disabled={stakeDisabled} title={t("dashboard.featuredButtons.earn.title")} body={t("dashboard.featuredButtons.earn.description")} diff --git a/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/Rates/Filter.tsx b/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/Rates/Filter.tsx index 6d6f777d57ac..04cc9f45bd5e 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/Rates/Filter.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/Rates/Filter.tsx @@ -4,7 +4,7 @@ import Box from "~/renderer/components/Box"; import styled from "styled-components"; import { FILTER } from "@ledgerhq/live-common/exchange/swap/utils/index"; import Button from "~/renderer/components/Button"; -import { Icons } from "@ledgerhq/react-ui"; +import { IconsLegacy } from "@ledgerhq/react-ui"; type Props = { onClick: (newFilter: string[]) => void; }; @@ -74,7 +74,7 @@ export default function Filter({ onClick }: Props) { {selected ? ( - + ) : null} {} diff --git a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/CustomImageManagerButton.tsx b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/CustomImageManagerButton.tsx index 6f314f89cefa..2cae309d1761 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/CustomImageManagerButton.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/CustomImageManagerButton.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from "react"; -import { Flex, Icons, Text, Link } from "@ledgerhq/react-ui"; +import { Flex, IconsLegacy, Text, Link } from "@ledgerhq/react-ui"; import { useTranslation } from "react-i18next"; import { setDrawer } from "~/renderer/drawers/Provider"; import { withV3StyleProvider } from "~/renderer/styles/StyleProviderV3"; @@ -33,7 +33,7 @@ const CustomImageManagerButton = (props: Props) => { @@ -42,7 +42,7 @@ const CustomImageManagerButton = (props: Props) => { {lastSeenCustomImage.size ? ( {t("removeCustomLockscreen.cta")} diff --git a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguage.tsx b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguage.tsx index 6689875bf3ce..b36949ddcc4a 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguage.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguage.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from "react"; -import { Flex, Icons, Link, Text } from "@ledgerhq/react-ui"; +import { Flex, IconsLegacy, Link, Text } from "@ledgerhq/react-ui"; import DeviceLanguageInstallation from "./DeviceLanguageInstallation"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; import { idsToLanguage, Language, DeviceInfo } from "@ledgerhq/types-live"; @@ -54,7 +54,7 @@ const DeviceLanguage: React.FC = ({ diff --git a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguageInstallation.tsx b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguageInstallation.tsx index 93f4a7a3c31a..eeddb2c3da58 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguageInstallation.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceLanguageInstallation.tsx @@ -1,5 +1,13 @@ import React, { useState, useCallback, useMemo } from "react"; -import { Button, Flex, Icons, Radio, Divider, Text, InfiniteLoader } from "@ledgerhq/react-ui"; +import { + Button, + Flex, + IconsLegacy, + Radio, + Divider, + Text, + InfiniteLoader, +} from "@ledgerhq/react-ui"; import { DeviceInfo, Language } from "@ledgerhq/types-live"; import { track } from "~/renderer/analytics/segment"; import { useAvailableLanguagesForDevice } from "@ledgerhq/live-common/manager/hooks"; @@ -123,7 +131,7 @@ const DeviceLanguageInstallation: React.FC = ({ {t(`deviceLocalization.languages.${language}`)} {currentLanguage === language && ( - + )} )} diff --git a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceName.tsx b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceName.tsx index 960e5435d72c..feae091f8cb3 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceName.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/DeviceName.tsx @@ -1,5 +1,5 @@ import React, { useState, useCallback } from "react"; -import { Flex, Icons } from "@ledgerhq/react-ui"; +import { Flex, IconsLegacy } from "@ledgerhq/react-ui"; import Text from "~/renderer/components/Text"; import EditDeviceName from "./EditDeviceName"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; @@ -67,7 +67,7 @@ const DeviceName: React.FC = ({ {editSupported ? ( - + ) : null} diff --git a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/EditDeviceName.tsx b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/EditDeviceName.tsx index a1e904af6dcd..4e350b5c6962 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/EditDeviceName.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/manager/DeviceStorage/EditDeviceName.tsx @@ -1,5 +1,5 @@ import React, { useState, useCallback, useMemo } from "react"; -import { Button, Flex, Divider, Text, Input, Icons, BoxedIcon } from "@ledgerhq/react-ui"; +import { Button, Flex, Divider, Text, Input, IconsLegacy, BoxedIcon } from "@ledgerhq/react-ui"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; import { useTranslation } from "react-i18next"; import { DeviceNameInvalid } from "@ledgerhq/errors"; @@ -131,7 +131,7 @@ const EditDeviceName: React.FC = ({ data-test-id="device-renamed" > void }> = ({ onClose }) => { data-test-id="custom-image-removed" > - + )} diff --git a/apps/ledger-live-desktop/src/renderer/screens/settings/WelcomeScreenSettings.tsx b/apps/ledger-live-desktop/src/renderer/screens/settings/WelcomeScreenSettings.tsx index f7d632c92599..c5b777ce11fd 100644 --- a/apps/ledger-live-desktop/src/renderer/screens/settings/WelcomeScreenSettings.tsx +++ b/apps/ledger-live-desktop/src/renderer/screens/settings/WelcomeScreenSettings.tsx @@ -1,6 +1,6 @@ import React from "react"; import { RouteComponentProps } from "react-router-dom"; -import { Icons, Link } from "@ledgerhq/react-ui"; +import { IconsLegacy, Link } from "@ledgerhq/react-ui"; import Box from "~/renderer/components/Box"; import Page from "~/renderer/components/Page"; import Settings from "."; @@ -23,7 +23,7 @@ const WelcomeScreenSettings: React.FC = props => { props.history.push("/onboarding"); }} mb={5} - Icon={Icons.ArrowLeftMedium} + Icon={IconsLegacy.ArrowLeftMedium} iconPosition="left" > Back diff --git a/apps/ledger-live-mobile/jest.config.js b/apps/ledger-live-mobile/jest.config.js index de11a0a773ee..199afbb59f23 100644 --- a/apps/ledger-live-mobile/jest.config.js +++ b/apps/ledger-live-mobile/jest.config.js @@ -40,6 +40,8 @@ module.exports = { coverageDirectory: "/coverage", moduleNameMapper: { "^@ledgerhq/coin-framework(.*)$": "/../../libs/coin-framework/lib$1.js", + "^@ledgerhq/icons-ui/nativeLegacy(.*)$": + "/../../libs/ui/packages/icons/nativeLegacy/$1", "^@ledgerhq/icons-ui/native(.*)$": "/../../libs/ui/packages/icons/native/$1", "^@ledgerhq/crypto-icons-ui/native(.*)$": "/../../libs/ui/packages/crypto-icons/native/$1", diff --git a/apps/ledger-live-mobile/src/components/AccountRowLayout.tsx b/apps/ledger-live-mobile/src/components/AccountRowLayout.tsx index d083a64b7faa..4b3e6b1391ab 100644 --- a/apps/ledger-live-mobile/src/components/AccountRowLayout.tsx +++ b/apps/ledger-live-mobile/src/components/AccountRowLayout.tsx @@ -2,7 +2,7 @@ import React from "react"; import { TouchableOpacity, TouchableOpacityProps } from "react-native"; import { Currency, Unit } from "@ledgerhq/types-cryptoassets"; import { ValueChange } from "@ledgerhq/types-live"; -import { Flex, Text, Tag, Icons } from "@ledgerhq/native-ui"; +import { Flex, Text, Tag, IconsLegacy } from "@ledgerhq/native-ui"; import { useTheme } from "styled-components/native"; import { BigNumber } from "bignumber.js"; import CurrencyUnitValue from "./CurrencyUnitValue"; @@ -94,7 +94,7 @@ const AccountRowLayout = ({ ) : null} - + {bottomLink && ( diff --git a/apps/ledger-live-mobile/src/components/Alert.tsx b/apps/ledger-live-mobile/src/components/Alert.tsx index b5d303116390..ee398a9831e8 100644 --- a/apps/ledger-live-mobile/src/components/Alert.tsx +++ b/apps/ledger-live-mobile/src/components/Alert.tsx @@ -3,7 +3,7 @@ import { Trans } from "react-i18next"; import { Linking, TouchableOpacity } from "react-native"; import { useSelector } from "react-redux"; import styled from "styled-components/native"; -import { Icons, Alert as BaseAlert, Flex } from "@ledgerhq/native-ui"; +import { IconsLegacy, Alert as BaseAlert, Flex } from "@ledgerhq/native-ui"; import { AlertProps as BaseAlertProps } from "@ledgerhq/native-ui/components/message/Alert/index"; import { dismissedBannersSelector } from "../reducers/settings"; @@ -43,43 +43,43 @@ const alertPropsByType: Record< > = { primary: { type: "info", - Icon: Icons.InfoMedium, + Icon: IconsLegacy.InfoMedium, }, secondary: { type: "info", - Icon: Icons.InfoMedium, + Icon: IconsLegacy.InfoMedium, }, success: { type: "info", - Icon: Icons.CircledCheckMedium, + Icon: IconsLegacy.CircledCheckMedium, }, warning: { type: "warning", - Icon: Icons.CircledAlertMedium, + Icon: IconsLegacy.CircledAlertMedium, }, error: { type: "error", - Icon: Icons.CircledCrossMedium, + Icon: IconsLegacy.CircledCrossMedium, }, hint: { type: "info", - Icon: Icons.LightbulbMedium, + Icon: IconsLegacy.LightbulbMedium, }, security: { type: "warning", - Icon: Icons.ShieldSecurityMedium, + Icon: IconsLegacy.ShieldSecurityMedium, }, help: { type: "info", - Icon: Icons.ShieldSecurityMedium, + Icon: IconsLegacy.ShieldSecurityMedium, }, danger: { type: "error", - Icon: Icons.ShieldSecurityMedium, + Icon: IconsLegacy.ShieldSecurityMedium, }, update: { type: "warning", - Icon: Icons.WarningMedium, + Icon: IconsLegacy.WarningMedium, }, }; @@ -105,7 +105,7 @@ export const LearnMoreLink = ({ learnMoreKey, Icon, }: LearnMoreLinkProps) => { - const IconComponent = Icon || Icons.ExternalLinkMedium; + const IconComponent = Icon || IconsLegacy.ExternalLinkMedium; return ( diff --git a/apps/ledger-live-mobile/src/components/AnalyticsConsole/index.tsx b/apps/ledger-live-mobile/src/components/AnalyticsConsole/index.tsx index 1014ca5f41d4..87df1256fb6d 100644 --- a/apps/ledger-live-mobile/src/components/AnalyticsConsole/index.tsx +++ b/apps/ledger-live-mobile/src/components/AnalyticsConsole/index.tsx @@ -1,6 +1,6 @@ import React, { useCallback, useState } from "react"; import { StyleSheet, Pressable } from "react-native"; -import { Flex, Switch, Icons, Divider, Alert, Text } from "@ledgerhq/native-ui"; +import { Flex, Switch, IconsLegacy, Divider, Alert, Text } from "@ledgerhq/native-ui"; import useEnv from "@ledgerhq/live-common/hooks/useEnv"; import { SafeAreaView, useSafeAreaInsets } from "react-native-safe-area-context"; import Animated, { FadeIn, FadeOut, Layout } from "react-native-reanimated"; @@ -96,7 +96,7 @@ const AnalyticsConsole = () => { label="Extra props" /> - + @@ -138,7 +138,7 @@ const AnalyticsConsole = () => { > - + ); }; diff --git a/apps/ledger-live-mobile/src/components/BalanceSummaryInfoItem.tsx b/apps/ledger-live-mobile/src/components/BalanceSummaryInfoItem.tsx index 01ddcbf709fd..c6b33855cbba 100644 --- a/apps/ledger-live-mobile/src/components/BalanceSummaryInfoItem.tsx +++ b/apps/ledger-live-mobile/src/components/BalanceSummaryInfoItem.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Flex, Text, Icons, Box } from "@ledgerhq/native-ui"; +import { Flex, Text, IconsLegacy, Box } from "@ledgerhq/native-ui"; import { TouchableOpacity } from "react-native"; type Props = { @@ -35,9 +35,9 @@ export default function BalanceSummaryInfoItem({ {onPress && ( <> {warning ? ( - + ) : ( - + )} )} diff --git a/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDeviceItem.tsx b/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDeviceItem.tsx index accc48635bfd..1e7690910a6d 100644 --- a/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDeviceItem.tsx +++ b/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDeviceItem.tsx @@ -1,6 +1,6 @@ import React, { useMemo } from "react"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; -import { Flex, Icons, Text } from "@ledgerhq/native-ui"; +import { Flex, IconsLegacy, Text } from "@ledgerhq/native-ui"; import { ChevronRightMedium } from "@ledgerhq/native-ui/assets/icons"; import { TouchableOpacity } from "react-native-gesture-handler"; import { useTranslation } from "react-i18next"; @@ -23,10 +23,10 @@ const BleDeviceItem = ({ deviceMeta, onSelect, areKnownDevicesPairable }: Props) const deviceIcon = useMemo(() => { switch (deviceMeta.modelId) { case DeviceModelId.stax: - return ; + return ; case DeviceModelId.nanoX: default: - return ; + return ; } }, [deviceMeta.modelId]); diff --git a/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDevicePairing.tsx b/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDevicePairing.tsx index 30eb4b15233c..eb4e497c7def 100644 --- a/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDevicePairing.tsx +++ b/apps/ledger-live-mobile/src/components/BleDevicePairingFlow/BleDevicePairing.tsx @@ -5,7 +5,7 @@ import { useBleDevicePairing } from "@ledgerhq/live-common/ble/hooks/useBleDevic import { Device } from "@ledgerhq/live-common/hw/actions/types"; import { Trans, useTranslation } from "react-i18next"; import { getDeviceModel } from "@ledgerhq/devices"; -import { Flex, InfiniteLoader, Text, Button, Icons, BoxedIcon } from "@ledgerhq/native-ui"; +import { Flex, InfiniteLoader, Text, Button, IconsLegacy, BoxedIcon } from "@ledgerhq/native-ui"; import { LockedDeviceError, PeerRemovedPairing } from "@ledgerhq/errors"; import { getDeviceAnimation } from "../../helpers/getDeviceAnimation"; @@ -61,7 +61,7 @@ const BleDevicePairing = ({ deviceToPair, onPaired, onRetry }: BleDevicePairingP - @@ -136,7 +141,7 @@ const BleDevicePairing = ({ deviceToPair, onPaired, onRetry }: BleDevicePairingP diff --git a/apps/ledger-live-mobile/src/components/ChangeDeviceLanguagePrompt.tsx b/apps/ledger-live-mobile/src/components/ChangeDeviceLanguagePrompt.tsx index ea9d787a8214..81a274650197 100644 --- a/apps/ledger-live-mobile/src/components/ChangeDeviceLanguagePrompt.tsx +++ b/apps/ledger-live-mobile/src/components/ChangeDeviceLanguagePrompt.tsx @@ -1,4 +1,4 @@ -import { Flex, Text, Button, Link, Icons } from "@ledgerhq/native-ui"; +import { Flex, Text, Button, Link, IconsLegacy } from "@ledgerhq/native-ui"; import React from "react"; import { ImageSourcePropType, Linking } from "react-native"; import { useTranslation } from "react-i18next"; @@ -66,7 +66,7 @@ const ChangeDeviceLanguagePrompt: React.FC = ({ Linking.openURL(urls.deviceLocalization.learnMore)} - Icon={Icons.ExternalLinkMedium} + Icon={IconsLegacy.ExternalLinkMedium} iconPosition="right" type="color" style={{ justifyContent: "flex-start" }} diff --git a/apps/ledger-live-mobile/src/components/CheckLanguageAvailability.tsx b/apps/ledger-live-mobile/src/components/CheckLanguageAvailability.tsx index a5282ef97a09..abd8e20e0457 100644 --- a/apps/ledger-live-mobile/src/components/CheckLanguageAvailability.tsx +++ b/apps/ledger-live-mobile/src/components/CheckLanguageAvailability.tsx @@ -3,7 +3,7 @@ import { useDispatch, useSelector } from "react-redux"; import { Trans, useTranslation } from "react-i18next"; import { View } from "react-native"; -import { Icons } from "@ledgerhq/native-ui"; +import { IconsLegacy } from "@ledgerhq/native-ui"; import QueuedDrawer from "./QueuedDrawer"; import ModalBottomAction from "./ModalBottomAction"; import { languageSelector, languageIsSetByUserSelector } from "../reducers/settings"; @@ -59,7 +59,7 @@ export default function CheckLanguageAvailability() { } - icon={} + icon={} description={ { - + {t("updatedTerms.link")} diff --git a/apps/ledger-live-mobile/src/components/CopyLink.tsx b/apps/ledger-live-mobile/src/components/CopyLink.tsx index 20c4a1e84945..f7c5f2a10e1a 100644 --- a/apps/ledger-live-mobile/src/components/CopyLink.tsx +++ b/apps/ledger-live-mobile/src/components/CopyLink.tsx @@ -1,7 +1,7 @@ import React, { PureComponent } from "react"; import { StyleSheet } from "react-native"; import Clipboard from "@react-native-community/clipboard"; -import { Icons, Text } from "@ledgerhq/native-ui"; +import { IconsLegacy, Text } from "@ledgerhq/native-ui"; import Touchable, { Props as TouchableProps } from "./Touchable"; import { withTheme } from "../colors"; @@ -47,7 +47,7 @@ class CopyLink extends PureComponent { const { copied } = this.state; return ( - + void }> = ({ error, device, ...(isRefusedOnStaxError - ? { Icon: Icons.CircledAlertMedium, iconColor: "warning.c50" } + ? { Icon: IconsLegacy.CircledAlertMedium, iconColor: "warning.c50" } : {}), })} {} diff --git a/apps/ledger-live-mobile/src/components/DebugTheme.tsx b/apps/ledger-live-mobile/src/components/DebugTheme.tsx index e96e7208fa96..c4e2b6c8a553 100644 --- a/apps/ledger-live-mobile/src/components/DebugTheme.tsx +++ b/apps/ledger-live-mobile/src/components/DebugTheme.tsx @@ -2,7 +2,7 @@ import React, { useCallback } from "react"; import { useDispatch, useSelector } from "react-redux"; import useEnv from "@ledgerhq/live-common/hooks/useEnv"; import { setEnv } from "@ledgerhq/live-common/env"; -import { Icons } from "@ledgerhq/native-ui"; +import { IconsLegacy } from "@ledgerhq/native-ui"; import { themeSelector } from "../reducers/settings"; import { setTheme } from "../actions/settings"; import FloatingDebugButton from "./FloatingDebugButton"; @@ -25,7 +25,7 @@ const DebugTheme = () => { ) : null; }; diff --git a/apps/ledger-live-mobile/src/components/DeviceAction/InstallSetOfApps/Item.tsx b/apps/ledger-live-mobile/src/components/DeviceAction/InstallSetOfApps/Item.tsx index 4de73a85d220..94d07c5aab24 100644 --- a/apps/ledger-live-mobile/src/components/DeviceAction/InstallSetOfApps/Item.tsx +++ b/apps/ledger-live-mobile/src/components/DeviceAction/InstallSetOfApps/Item.tsx @@ -1,6 +1,6 @@ import React from "react"; import { useTranslation } from "react-i18next"; -import { Icons, Flex, ProgressLoader, Text } from "@ledgerhq/native-ui"; +import { IconsLegacy, Flex, ProgressLoader, Text } from "@ledgerhq/native-ui"; import { useTheme } from "styled-components/native"; import Circle from "../../Circle"; @@ -34,9 +34,9 @@ const Item = ({ appName, state, itemProgress, productName, i }: Props) => { strokeWidth={2} /> ) : state === ItemState.Installed ? ( - + ) : state === ItemState.Skipped ? ( - + ) : ( {i + 1} diff --git a/apps/ledger-live-mobile/src/components/DeviceAction/common.tsx b/apps/ledger-live-mobile/src/components/DeviceAction/common.tsx index e75868ee999e..86f9e6a3ca18 100644 --- a/apps/ledger-live-mobile/src/components/DeviceAction/common.tsx +++ b/apps/ledger-live-mobile/src/components/DeviceAction/common.tsx @@ -1,7 +1,7 @@ import React, { useMemo } from "react"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; import { getDeviceModel } from "@ledgerhq/devices"; -import { Text, Flex, Icons, IconBadge } from "@ledgerhq/native-ui"; +import { Text, Flex, IconsLegacy, IconBadge } from "@ledgerhq/native-ui"; import { useTheme } from "styled-components/native"; import { TFunction } from "react-i18next"; import Button from "../wrappedUi/Button"; @@ -110,7 +110,7 @@ export const FirmwareUpdateDenied = ({ return ( - + {t("FirmwareUpdate.updateCancelled", { deviceName: getDeviceModel(device.modelId).productName, @@ -208,7 +208,7 @@ export const DeviceActionError = ({ return ( - + {errorTitle} diff --git a/apps/ledger-live-mobile/src/components/DeviceAction/index.tsx b/apps/ledger-live-mobile/src/components/DeviceAction/index.tsx index 8c423e436cbe..6ce2ed07ff40 100644 --- a/apps/ledger-live-mobile/src/components/DeviceAction/index.tsx +++ b/apps/ledger-live-mobile/src/components/DeviceAction/index.tsx @@ -14,7 +14,7 @@ import { import { useTranslation } from "react-i18next"; import { ParamListBase, useNavigation, useTheme } from "@react-navigation/native"; import { useTheme as useThemeFromStyledComponents } from "styled-components/native"; -import { Flex, Text, Icons } from "@ledgerhq/native-ui"; +import { Flex, Text, IconsLegacy } from "@ledgerhq/native-ui"; import type { AppRequest } from "@ledgerhq/live-common/hw/actions/app"; import type { InitSellResult } from "@ledgerhq/live-common/exchange/sell/types"; import { TokenCurrency } from "@ledgerhq/types-cryptoassets"; @@ -343,7 +343,7 @@ export function DeviceActionDefaultRendering({ theme, hasExportLogButton: false, iconColor: palette.neutral.c20, - Icon: () => , + Icon: () => , device: device ?? undefined, }); } @@ -466,7 +466,7 @@ export function DeviceActionDefaultRendering({ colors, theme, iconColor: palette.opacityDefault.c10, - Icon: () => , + Icon: () => , device: device ?? undefined, }); } diff --git a/apps/ledger-live-mobile/src/components/DeviceAction/rendering.tsx b/apps/ledger-live-mobile/src/components/DeviceAction/rendering.tsx index b9a5df7179e7..6f2aed19b926 100644 --- a/apps/ledger-live-mobile/src/components/DeviceAction/rendering.tsx +++ b/apps/ledger-live-mobile/src/components/DeviceAction/rendering.tsx @@ -10,7 +10,7 @@ import { Device } from "@ledgerhq/live-common/hw/actions/types"; import { AppRequest } from "@ledgerhq/live-common/hw/actions/app"; import firmwareUpdateRepair from "@ledgerhq/live-common/hw/firmwareUpdate-repair"; import { getProviderName, getNoticeType } from "@ledgerhq/live-common/exchange/swap/utils/index"; -import { InfiniteLoader, Text, Flex, Tag, Icons, BoxedIcon, Log } from "@ledgerhq/native-ui"; +import { InfiniteLoader, Text, Flex, Tag, IconsLegacy, BoxedIcon, Log } from "@ledgerhq/native-ui"; import { LockAltMedium, DownloadMedium } from "@ledgerhq/native-ui/assets/icons"; import BigNumber from "bignumber.js"; import { ExchangeRate, Exchange } from "@ledgerhq/live-common/exchange/swap/types"; @@ -780,7 +780,7 @@ export function renderDeviceNotOnboarded({ return ( - + {t("DeviceAction.deviceNotOnboarded.title")} @@ -842,7 +842,7 @@ export function renderConnectYourDevice({ @@ -961,7 +961,7 @@ export function renderWarningOutdated({ - + {t("DeviceAction.outdated")} diff --git a/apps/ledger-live-mobile/src/components/DeviceLanguageInstalled.tsx b/apps/ledger-live-mobile/src/components/DeviceLanguageInstalled.tsx index 36fe7fc33774..d500863ca7c5 100644 --- a/apps/ledger-live-mobile/src/components/DeviceLanguageInstalled.tsx +++ b/apps/ledger-live-mobile/src/components/DeviceLanguageInstalled.tsx @@ -2,7 +2,7 @@ import React, { useEffect } from "react"; import { Language, languageIds } from "@ledgerhq/types-live"; import { useTranslation } from "react-i18next"; -import { Flex, Text, Button, Icons } from "@ledgerhq/native-ui"; +import { Flex, Text, Button, IconsLegacy } from "@ledgerhq/native-ui"; import { useDispatch } from "react-redux"; import { setLastSeenDeviceLanguageId } from "../actions/settings"; @@ -27,7 +27,7 @@ const DeviceLanguageInstalled: React.FC<{ return ( - + {t("deviceLocalization.languageInstalled", { diff --git a/apps/ledger-live-mobile/src/components/ExternalLink.tsx b/apps/ledger-live-mobile/src/components/ExternalLink.tsx index e143be9eff5e..4b95ef0417b5 100644 --- a/apps/ledger-live-mobile/src/components/ExternalLink.tsx +++ b/apps/ledger-live-mobile/src/components/ExternalLink.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from "react"; -import { Icons, Link as BaseLink } from "@ledgerhq/native-ui"; +import { IconsLegacy, Link as BaseLink } from "@ledgerhq/native-ui"; import { LinkProps } from "@ledgerhq/native-ui/components/cta/Link/index"; import { track } from "../analytics"; @@ -41,7 +41,7 @@ export default function ExternalLink({ diff --git a/apps/ledger-live-mobile/src/components/FabActions/ReadOnlyFabActions.tsx b/apps/ledger-live-mobile/src/components/FabActions/ReadOnlyFabActions.tsx index eb9fefbd35ba..22d153b78e66 100644 --- a/apps/ledger-live-mobile/src/components/FabActions/ReadOnlyFabActions.tsx +++ b/apps/ledger-live-mobile/src/components/FabActions/ReadOnlyFabActions.tsx @@ -1,6 +1,6 @@ import React, { memo, useCallback } from "react"; import { useTranslation } from "react-i18next"; -import { Icons, Flex } from "@ledgerhq/native-ui"; +import { IconsLegacy, Flex } from "@ledgerhq/native-ui"; import { useNavigation } from "@react-navigation/native"; import Button from "../wrappedUi/Button"; @@ -9,8 +9,8 @@ import { ScreenName } from "../../const"; import useCurrency from "../../helpers/useCurrency"; import { track } from "../../analytics"; -const iconBuy = Icons.PlusMedium; -const iconReceive = Icons.ArrowBottomMedium; +const iconBuy = IconsLegacy.PlusMedium; +const iconReceive = IconsLegacy.ArrowBottomMedium; function ReadOnlyFabActions() { const { t } = useTranslation(); diff --git a/apps/ledger-live-mobile/src/components/FabActions/hooks/useAssetActions.tsx b/apps/ledger-live-mobile/src/components/FabActions/hooks/useAssetActions.tsx index 71a9de759ddf..babbba1defdc 100644 --- a/apps/ledger-live-mobile/src/components/FabActions/hooks/useAssetActions.tsx +++ b/apps/ledger-live-mobile/src/components/FabActions/hooks/useAssetActions.tsx @@ -2,7 +2,7 @@ import React, { useMemo } from "react"; import { AccountLikeArray } from "@ledgerhq/types-live"; import { useSelector } from "react-redux"; import { useTranslation } from "react-i18next"; -import { Icons } from "@ledgerhq/native-ui"; +import { IconsLegacy } from "@ledgerhq/native-ui"; import { useRampCatalog } from "@ledgerhq/live-common/platform/providers/RampCatalogProvider/index"; import { filterRampCatalogEntries } from "@ledgerhq/live-common/platform/providers/RampCatalogProvider/helpers"; import { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets"; @@ -23,13 +23,13 @@ type useAssetActionsProps = { accounts?: AccountLikeArray; }; -const iconBuy = Icons.PlusMedium; -const iconSell = Icons.MinusMedium; -const iconSwap = Icons.BuyCryptoMedium; -const iconReceive = Icons.ArrowBottomMedium; -const iconSend = Icons.ArrowTopMedium; -const iconAddAccount = Icons.WalletMedium; -const iconStake = Icons.ClaimRewardsMedium; +const iconBuy = IconsLegacy.PlusMedium; +const iconSell = IconsLegacy.MinusMedium; +const iconSwap = IconsLegacy.BuyCryptoMedium; +const iconReceive = IconsLegacy.ArrowBottomMedium; +const iconSend = IconsLegacy.ArrowTopMedium; +const iconAddAccount = IconsLegacy.WalletMedium; +const iconStake = IconsLegacy.ClaimRewardsMedium; export default function useAssetActions({ currency, accounts }: useAssetActionsProps): { mainActions: ActionButtonEvent[]; diff --git a/apps/ledger-live-mobile/src/components/FirmwareUpdate/ConfirmRecoveryStep.tsx b/apps/ledger-live-mobile/src/components/FirmwareUpdate/ConfirmRecoveryStep.tsx index 037396c2c557..18a70acedb1f 100644 --- a/apps/ledger-live-mobile/src/components/FirmwareUpdate/ConfirmRecoveryStep.tsx +++ b/apps/ledger-live-mobile/src/components/FirmwareUpdate/ConfirmRecoveryStep.tsx @@ -1,4 +1,13 @@ -import { Divider, Flex, Text, Link, Icons, Button, Checkbox, Alert } from "@ledgerhq/native-ui"; +import { + Divider, + Flex, + Text, + Link, + IconsLegacy, + Button, + Checkbox, + Alert, +} from "@ledgerhq/native-ui"; import React, { useCallback, useState } from "react"; import { useTranslation } from "react-i18next"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; @@ -52,7 +61,7 @@ const ConfirmRecoveryStep = ({ firmwareVersion, firmwareNotes, onContinue, devic { return ( - + {t("FirmwareUpdate.success")} diff --git a/apps/ledger-live-mobile/src/components/FirmwareUpdate/index.tsx b/apps/ledger-live-mobile/src/components/FirmwareUpdate/index.tsx index 7846c74079e7..359283c4dc56 100644 --- a/apps/ledger-live-mobile/src/components/FirmwareUpdate/index.tsx +++ b/apps/ledger-live-mobile/src/components/FirmwareUpdate/index.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; import { NativeModules } from "react-native"; import { useSelector, useDispatch } from "react-redux"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; -import { Button, Icons } from "@ledgerhq/native-ui"; +import { Button, IconsLegacy } from "@ledgerhq/native-ui"; import { DeviceInfo } from "@ledgerhq/types-live"; import { BluetoothNotSupportedError } from "@ledgerhq/live-common/errors"; import useLatestFirmware from "@ledgerhq/live-common/hooks/useLatestFirmware"; @@ -220,7 +220,7 @@ export default function FirmwareUpdate({ error! instanceof DisconnectedDeviceDuringOperation } hasExportLogButton={!(error instanceof BluetoothNotSupportedError)} - Icon={error instanceof BluetoothNotSupportedError ? Icons.UsbMedium : undefined} + Icon={error instanceof BluetoothNotSupportedError ? IconsLegacy.UsbMedium : undefined} iconColor={error instanceof BluetoothNotSupportedError ? "neutral.c100" : undefined} /> {!( diff --git a/apps/ledger-live-mobile/src/components/FirmwareUpdateBanner.tsx b/apps/ledger-live-mobile/src/components/FirmwareUpdateBanner.tsx index 29093a445604..edbe20a8d2df 100644 --- a/apps/ledger-live-mobile/src/components/FirmwareUpdateBanner.tsx +++ b/apps/ledger-live-mobile/src/components/FirmwareUpdateBanner.tsx @@ -4,7 +4,7 @@ import { useNavigation, useRoute } from "@react-navigation/native"; import { DeviceModelInfo } from "@ledgerhq/types-live"; import { useTranslation } from "react-i18next"; import { useSelector } from "react-redux"; -import { Alert, Text, Flex, Icons, IconBadge } from "@ledgerhq/native-ui"; +import { Alert, Text, Flex, IconsLegacy, IconBadge } from "@ledgerhq/native-ui"; import { DownloadMedium, UsbMedium } from "@ledgerhq/native-ui/assets/icons"; import { DeviceModelId, getDeviceModel } from "@ledgerhq/devices"; import { useFeature } from "@ledgerhq/live-common/featureFlags/index"; @@ -178,7 +178,7 @@ const FirmwareUpdateBanner = ({ onBackFromUpdate }: FirmwareUpdateBannerProps) = {newFwUpdateUxFeatureFlag?.enabled ? ( - + {t("FirmwareUpdate.newVersion", { version, @@ -257,7 +257,7 @@ const FirmwareUpdateBanner = ({ onBackFromUpdate }: FirmwareUpdateBannerProps) = onClose={() => setShowBatteryWarningDrawer(false)} > - + {t("FirmwareUpdate.staxBatteryLow")} diff --git a/apps/ledger-live-mobile/src/components/GenericErrorView.tsx b/apps/ledger-live-mobile/src/components/GenericErrorView.tsx index d6a72508dcd5..2a56252c7ea1 100644 --- a/apps/ledger-live-mobile/src/components/GenericErrorView.tsx +++ b/apps/ledger-live-mobile/src/components/GenericErrorView.tsx @@ -1,7 +1,7 @@ import React, { memo } from "react"; import { useTranslation } from "react-i18next"; import styled, { useTheme } from "styled-components/native"; -import { Flex, Icons, Link, Text, BoxedIcon } from "@ledgerhq/native-ui"; +import { Flex, IconsLegacy, Link, Text, BoxedIcon } from "@ledgerhq/native-ui"; import { CloseMedium } from "@ledgerhq/native-ui/assets/icons"; import { BluetoothRequired } from "@ledgerhq/errors"; import { IconType } from "@ledgerhq/native-ui/components/Icon/type"; @@ -24,7 +24,7 @@ type Props = { iconColor?: string; children?: React.ReactNode; footerComponent?: React.ReactNode; - exportLogIcon?: typeof Icons.DownloadMedium | typeof Icons.ImportMedium; + exportLogIcon?: typeof IconsLegacy.DownloadMedium | typeof IconsLegacy.ImportMedium; exportLogIconPosition?: "left" | "right"; }; @@ -44,7 +44,7 @@ const GenericErrorView = ({ Icon = CloseMedium, iconColor = "error.c60", footerComponent, - exportLogIcon = Icons.DownloadMedium, + exportLogIcon = IconsLegacy.DownloadMedium, exportLogIconPosition = "left", }: Props) => { const { t } = useTranslation(); diff --git a/apps/ledger-live-mobile/src/components/InfoModal.tsx b/apps/ledger-live-mobile/src/components/InfoModal.tsx index c9f349d48353..63404c901e2e 100644 --- a/apps/ledger-live-mobile/src/components/InfoModal.tsx +++ b/apps/ledger-live-mobile/src/components/InfoModal.tsx @@ -3,7 +3,7 @@ import { StyleSheet, View } from "react-native"; import { Trans } from "react-i18next"; import { useTheme } from "styled-components/native"; -import { Icons, IconBox, Flex } from "@ledgerhq/native-ui"; +import { IconsLegacy, IconBox, Flex } from "@ledgerhq/native-ui"; import type { Props as IconBoxProps } from "@ledgerhq/native-ui/components/Icon/IconBox"; import QueuedDrawer from "./QueuedDrawer"; import LText from "./LText"; @@ -41,7 +41,7 @@ const InfoModal = ({ title, desc, bullets, - Icon = Icons.InfoMedium, + Icon = IconsLegacy.InfoMedium, withCancel, onContinue, children, diff --git a/apps/ledger-live-mobile/src/components/NavigationHeaderBackButton.tsx b/apps/ledger-live-mobile/src/components/NavigationHeaderBackButton.tsx index 3aa1a47adf09..604c34c6d160 100644 --- a/apps/ledger-live-mobile/src/components/NavigationHeaderBackButton.tsx +++ b/apps/ledger-live-mobile/src/components/NavigationHeaderBackButton.tsx @@ -1,4 +1,4 @@ -import { Flex, Icons } from "@ledgerhq/native-ui"; +import { Flex, IconsLegacy } from "@ledgerhq/native-ui"; import { useNavigation } from "@react-navigation/native"; import React from "react"; import Touchable from "./Touchable"; @@ -13,7 +13,7 @@ type Props = { export const NavigationHeaderBackImage = () => ( - + ); diff --git a/apps/ledger-live-mobile/src/components/NavigationHeaderCloseButton.tsx b/apps/ledger-live-mobile/src/components/NavigationHeaderCloseButton.tsx index 307a36684dfd..7b22b20887cf 100644 --- a/apps/ledger-live-mobile/src/components/NavigationHeaderCloseButton.tsx +++ b/apps/ledger-live-mobile/src/components/NavigationHeaderCloseButton.tsx @@ -1,4 +1,4 @@ -import { Flex, Icons } from "@ledgerhq/native-ui"; +import { Flex, IconsLegacy } from "@ledgerhq/native-ui"; import { ParamListBase, useNavigation } from "@react-navigation/native"; import { StackNavigationProp } from "@react-navigation/stack"; import React, { useCallback, useState } from "react"; @@ -36,7 +36,7 @@ export const NavigationHeaderCloseButton: React.FC = React.memo(({ onPres onPress={() => (onPress ? onPress() : navigation.popToTop())} > - + ); diff --git a/apps/ledger-live-mobile/src/components/Nft/DesignedForStax.tsx b/apps/ledger-live-mobile/src/components/Nft/DesignedForStax.tsx index 7fa438f75f48..cade3f7d853e 100644 --- a/apps/ledger-live-mobile/src/components/Nft/DesignedForStax.tsx +++ b/apps/ledger-live-mobile/src/components/Nft/DesignedForStax.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Button, Flex, Icons, Text } from "@ledgerhq/native-ui"; +import { Button, Flex, IconsLegacy, Text } from "@ledgerhq/native-ui"; import { Trans, useTranslation } from "react-i18next"; import QueuedDrawer from "../QueuedDrawer"; @@ -21,7 +21,7 @@ const LedgerLogo = ({ } & DesignedForStaxTextProps) => { return ( - diff --git a/apps/ledger-live-mobile/src/components/Nft/HideNftDrawer.tsx b/apps/ledger-live-mobile/src/components/Nft/HideNftDrawer.tsx index eeea93f82f99..8dc4fbc94674 100644 --- a/apps/ledger-live-mobile/src/components/Nft/HideNftDrawer.tsx +++ b/apps/ledger-live-mobile/src/components/Nft/HideNftDrawer.tsx @@ -2,7 +2,7 @@ import React, { memo, useCallback } from "react"; import { useTranslation } from "react-i18next"; import { useNavigation } from "@react-navigation/native"; -import { Button, Icons } from "@ledgerhq/native-ui"; +import { Button, IconsLegacy } from "@ledgerhq/native-ui"; import { useDispatch, useSelector } from "react-redux"; import { Account } from "@ledgerhq/types-live"; import { decodeNftId } from "@ledgerhq/live-common/nft/index"; @@ -59,7 +59,7 @@ const HideNftDrawer = ({ nftId, nftContract, collection, isOpened, onClose }: Pr - + {t("settings.accounts.hideNFTCollectionModal.title")} diff --git a/apps/ledger-live-mobile/src/components/Nft/NftGallery/AddNewItemList.tsx b/apps/ledger-live-mobile/src/components/Nft/NftGallery/AddNewItemList.tsx index cd40ff176dfa..f24b56ba316d 100644 --- a/apps/ledger-live-mobile/src/components/Nft/NftGallery/AddNewItemList.tsx +++ b/apps/ledger-live-mobile/src/components/Nft/NftGallery/AddNewItemList.tsx @@ -1,4 +1,4 @@ -import { Flex, Icons, Text } from "@ledgerhq/native-ui"; +import { Flex, IconsLegacy, Text } from "@ledgerhq/native-ui"; import React from "react"; import { useTranslation } from "react-i18next"; import { useTheme } from "styled-components/native"; @@ -31,7 +31,7 @@ export const AddNewItem = () => { return ( - + - + } title={t("nft.viewerModal.hide")} @@ -189,7 +189,7 @@ const NftLinksPanel = ({ nftContract, nftId, links, isOpen, onClose, nftMetadata { backgroundColor: rgba(colors.primary.c90, 0.1) }, ]} > - + } title={t("nft.viewerModal.viewInExplorer")} @@ -210,7 +210,7 @@ const NftLinksPanel = ({ nftContract, nftId, links, isOpen, onClose, nftMetadata { backgroundColor: rgba(colors.primary.c90, 0.1) }, ]} > - + } onPress={handlePressCustomImage} diff --git a/apps/ledger-live-mobile/src/components/Nft/NftSelectionCheckbox.tsx b/apps/ledger-live-mobile/src/components/Nft/NftSelectionCheckbox.tsx index 85d6a702e556..48852fada46e 100644 --- a/apps/ledger-live-mobile/src/components/Nft/NftSelectionCheckbox.tsx +++ b/apps/ledger-live-mobile/src/components/Nft/NftSelectionCheckbox.tsx @@ -1,4 +1,4 @@ -import { Flex, Icons } from "@ledgerhq/native-ui"; +import { Flex, IconsLegacy } from "@ledgerhq/native-ui"; import React from "react"; import { useTheme } from "styled-components/native"; import styled from "@ledgerhq/native-ui/components/styled"; @@ -34,7 +34,7 @@ export const NftSelectionCheckbox = ({ isSelected }: Props) => { if (isSelected) { return ( - + ); } diff --git a/apps/ledger-live-mobile/src/components/Nft/NftViewer.tsx b/apps/ledger-live-mobile/src/components/Nft/NftViewer.tsx index 511ec7bca802..d397c6e8256b 100644 --- a/apps/ledger-live-mobile/src/components/Nft/NftViewer.tsx +++ b/apps/ledger-live-mobile/src/components/Nft/NftViewer.tsx @@ -26,7 +26,7 @@ import { } from "@ledgerhq/live-common/nft/index"; import { BigNumber } from "bignumber.js"; import { useDispatch, useSelector } from "react-redux"; -import { Box, Button, Icons, Text, Flex } from "@ledgerhq/native-ui"; +import { Box, Button, IconsLegacy, Text, Flex } from "@ledgerhq/native-ui"; import { useTranslation, Trans } from "react-i18next"; import Clipboard from "@react-native-community/clipboard"; import { FloorPrice, Account } from "@ledgerhq/types-live"; @@ -132,7 +132,7 @@ const Section = ({ {copyAvailable ? ( - + {copied ? ( @@ -436,7 +436,7 @@ const NftViewer = ({ route }: Props) => { - + {t("notifications.ptxServices.drawer.link")} diff --git a/apps/ledger-live-mobile/src/components/RootNavigator/MainNavigator.tsx b/apps/ledger-live-mobile/src/components/RootNavigator/MainNavigator.tsx index f00d70964390..55e977ff25e9 100644 --- a/apps/ledger-live-mobile/src/components/RootNavigator/MainNavigator.tsx +++ b/apps/ledger-live-mobile/src/components/RootNavigator/MainNavigator.tsx @@ -1,6 +1,6 @@ import React, { useCallback, useMemo } from "react"; import { useTheme } from "styled-components/native"; -import { Icons } from "@ledgerhq/native-ui"; +import { IconsLegacy } from "@ledgerhq/native-ui"; import { BottomTabBarProps, createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { useSelector } from "react-redux"; @@ -104,7 +104,7 @@ export default function MainNavigator() { unmountOnBlur: true, tabBarIcon: props => ( ( - + ), }} listeners={({ navigation }) => ({ diff --git a/apps/ledger-live-mobile/src/components/RootNavigator/ManagerNavigator.tsx b/apps/ledger-live-mobile/src/components/RootNavigator/ManagerNavigator.tsx index 61b6c223dcb8..3e14efe24603 100644 --- a/apps/ledger-live-mobile/src/components/RootNavigator/ManagerNavigator.tsx +++ b/apps/ledger-live-mobile/src/components/RootNavigator/ManagerNavigator.tsx @@ -3,7 +3,7 @@ import { TouchableOpacity } from "react-native"; import styled, { useTheme } from "styled-components/native"; import { createStackNavigator } from "@react-navigation/stack"; import { useSelector } from "react-redux"; -import { Box, Icons, Flex, Button } from "@ledgerhq/native-ui"; +import { Box, IconsLegacy, Flex, Button } from "@ledgerhq/native-ui"; import { DeviceModelId } from "@ledgerhq/types-devices"; import { ScreenName } from "../../const"; import { hasAvailableUpdateSelector, lastSeenDeviceSelector } from "../../reducers/settings"; @@ -54,7 +54,7 @@ export default function ManagerNavigator() { gestureEnabled: false, headerTitle: () => null, headerLeft: () => null, - headerRight: () =>