From be21b9340002589ee299d570bf03e1580c80826b Mon Sep 17 00:00:00 2001 From: Juliano Lazzarotto <30806844+stackchain@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:17:57 +0100 Subject: [PATCH] fix(wallet-mobile): expo-img resizeMode is deprecated --- .../useCases/SelectDappFromList/DAppListItem/DAppListItem.tsx | 2 +- .../PortfolioTokenInfo/Overview/{index.tsx => Overview.tsx} | 1 - .../PortfolioTokenInfo/PortfolioTokenInfo.tsx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) rename apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/Overview/{index.tsx => Overview.tsx} (99%) diff --git a/apps/wallet-mobile/src/features/Discover/useCases/SelectDappFromList/DAppListItem/DAppListItem.tsx b/apps/wallet-mobile/src/features/Discover/useCases/SelectDappFromList/DAppListItem/DAppListItem.tsx index 11e88ff6f7..f2169120dd 100644 --- a/apps/wallet-mobile/src/features/Discover/useCases/SelectDappFromList/DAppListItem/DAppListItem.tsx +++ b/apps/wallet-mobile/src/features/Discover/useCases/SelectDappFromList/DAppListItem/DAppListItem.tsx @@ -203,7 +203,7 @@ const useStyles = () => { dAppLogo: { width: 40, height: 40, - resizeMode: 'contain', + contentFit: 'contain', }, dAppLogoDialog: { width: 48, diff --git a/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/Overview/index.tsx b/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/Overview/Overview.tsx similarity index 99% rename from apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/Overview/index.tsx rename to apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/Overview/Overview.tsx index ee07dd3f70..bc25958ce7 100644 --- a/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/Overview/index.tsx +++ b/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/Overview/Overview.tsx @@ -147,7 +147,6 @@ const useStyles = () => { tokenLogo: { width: 32, height: 32, - resizeMode: 'cover', ...atoms.rounded_sm, }, textBody: { diff --git a/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/PortfolioTokenInfo.tsx b/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/PortfolioTokenInfo.tsx index 7a49ea7a50..733720adfa 100644 --- a/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/PortfolioTokenInfo.tsx +++ b/apps/wallet-mobile/src/features/Portfolio/useCases/PortfolioTokenDetails/PortfolioTokenInfo/PortfolioTokenInfo.tsx @@ -4,7 +4,7 @@ import {StyleSheet, View} from 'react-native' import {TabPanel, TabPanels} from '../../../../../components/Tabs' import {usePortfolioTokenDetailContext} from '../../../common/PortfolioTokenDetailContext' -import {Overview} from './Overview' +import {Overview} from './Overview/Overview' import {Performance} from './Performance' export const PortfolioTokenInfo = () => {