From 33ff359efc85b6e4d8896b119c44ecfb0ea2f836 Mon Sep 17 00:00:00 2001 From: mvaivre Date: Mon, 19 Aug 2024 11:57:01 +0200 Subject: [PATCH] NFTsScreen -> NFTListScreen --- apps/mobile-wallet/src/navigation/InWalletNavigation.tsx | 8 ++++---- .../src/screens/Dashboard/AnimatedCirclesBackground.tsx | 2 +- .../screens/NFTs/{NFTSScreen.tsx => NFTListScreen.tsx} | 9 ++++++--- 3 files changed, 11 insertions(+), 8 deletions(-) rename apps/mobile-wallet/src/screens/NFTs/{NFTSScreen.tsx => NFTListScreen.tsx} (86%) diff --git a/apps/mobile-wallet/src/navigation/InWalletNavigation.tsx b/apps/mobile-wallet/src/navigation/InWalletNavigation.tsx index 86c4ca7d4..e0d9a210f 100644 --- a/apps/mobile-wallet/src/navigation/InWalletNavigation.tsx +++ b/apps/mobile-wallet/src/navigation/InWalletNavigation.tsx @@ -27,11 +27,11 @@ import FooterMenu from '~/components/footers/FooterMenu' import AddressesTabNavigation from '~/navigation/AddressesTabNavigation' import ActivityScreen from '~/screens/ActivityScreen' import DashboardScreen from '~/screens/Dashboard/DashboardScreen' -import NFTsScreen from '~/screens/NFTs/NFTsScreen' +import NFTListScreen from '~/screens/NFTs/NFTListScreen' export type InWalletTabsParamList = { DashboardScreen: undefined - NFTsScreen: undefined + NFTListScreen: undefined AddressesTabNavigation: undefined ActivityScreen: undefined } @@ -62,8 +62,8 @@ const InWalletTabsNavigation = () => { }} /> ( diff --git a/apps/mobile-wallet/src/screens/Dashboard/AnimatedCirclesBackground.tsx b/apps/mobile-wallet/src/screens/Dashboard/AnimatedCirclesBackground.tsx index a92519c4a..e168e219f 100644 --- a/apps/mobile-wallet/src/screens/Dashboard/AnimatedCirclesBackground.tsx +++ b/apps/mobile-wallet/src/screens/Dashboard/AnimatedCirclesBackground.tsx @@ -48,7 +48,7 @@ const AnimatedCirclesBackground = ({ scrollY }: AnimatedCirclesBackgroundProps) const circle2X = useDerivedValue(() => withSpring(screenWidth / 2 + gyroscope.sensor.value.roll * 20, { mass: 40, damping: 20 }) ) - const circle2Y = useDerivedValue(() => withSpring(90 + gyroscope.sensor.value.pitch * 20, { mass: 40, damping: 20 })) + const circle2Y = useDerivedValue(() => withSpring(180 + gyroscope.sensor.value.pitch * 20, { mass: 40, damping: 20 })) const circle3X = useDerivedValue(() => withSpring(screenWidth - 50 + gyroscope.sensor.value.roll * 23, { mass: 30, damping: 20 }) diff --git a/apps/mobile-wallet/src/screens/NFTs/NFTSScreen.tsx b/apps/mobile-wallet/src/screens/NFTs/NFTListScreen.tsx similarity index 86% rename from apps/mobile-wallet/src/screens/NFTs/NFTSScreen.tsx rename to apps/mobile-wallet/src/screens/NFTs/NFTListScreen.tsx index 4e03d611a..28c97c4bc 100644 --- a/apps/mobile-wallet/src/screens/NFTs/NFTSScreen.tsx +++ b/apps/mobile-wallet/src/screens/NFTs/NFTListScreen.tsx @@ -26,10 +26,13 @@ import { ReceiveNavigationParamList } from '~/navigation/ReceiveNavigation' import { SendNavigationParamList } from '~/navigation/SendNavigation' interface ScreenProps - extends StackScreenProps, + extends StackScreenProps< + InWalletTabsParamList & ReceiveNavigationParamList & SendNavigationParamList, + 'NFTListScreen' + >, BottomBarScrollScreenProps {} -const NFTsScreen = ({ navigation, ...props }: ScreenProps) => { +const NFTListScreen = ({ navigation, ...props }: ScreenProps) => { const { t } = useTranslation() return ( @@ -48,4 +51,4 @@ const NFTsScreen = ({ navigation, ...props }: ScreenProps) => { ) } -export default NFTsScreen +export default NFTListScreen