From cb9c0044fe36ebcf9f795efe463bf63afa522b60 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Sun, 30 Jun 2024 17:38:01 -0400 Subject: [PATCH] FIX: Lint --- App.tsx | 14 +------------- screen/send/coinControl.js | 23 +++++++++++------------ 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/App.tsx b/App.tsx index 0f1835c87..f549c7d02 100644 --- a/App.tsx +++ b/App.tsx @@ -10,25 +10,13 @@ import { BlueDarkTheme, BlueDefaultTheme } from './components/themes'; import MasterView from './navigation/MasterView'; import { navigationRef } from './NavigationService'; import { StorageProvider } from './components/Context/StorageProvider'; -import { TrueSheet } from '@lodev09/react-native-true-sheet'; const App = () => { const colorScheme = useColorScheme(); - const onReady = () => { - // @ts-ignore: fix later - navigationRef.current?.addListener('beforeRemove', async (e: any) => { - if (e.data.action.type === 'NAVIGATE') { - e.preventDefault(); - await TrueSheet.dismiss('BottomModal'); - navigationRef.current?.dispatch(e.data.action); - } - }); - }; - return ( - + diff --git a/screen/send/coinControl.js b/screen/send/coinControl.js index 11d04c51f..75677b4e0 100644 --- a/screen/send/coinControl.js +++ b/screen/send/coinControl.js @@ -5,10 +5,8 @@ import { ActivityIndicator, FlatList, Keyboard, - KeyboardAvoidingView, LayoutAnimation, PixelRatio, - Platform, StyleSheet, Text, TextInput, @@ -132,7 +130,7 @@ const OutputModal = ({ item: { address, txid, value, vout, confirmations = 0 }, const amount = formatBalance(value, balanceUnit, true); const oStyles = StyleSheet.create({ - container: { paddingHorizontal: 0, borderBottomColor: colors.lightBorder, backgroundColor: colors.elevated }, + container: { paddingHorizontal: 0, borderBottomColor: colors.lightBorder, backgroundColor: 'transparent' }, avatar: { borderColor: 'white', borderWidth: 1, backgroundColor: color }, amount: { fontWeight: 'bold', color: colors.foregroundColor }, tranContainer: { paddingLeft: 20 }, @@ -197,6 +195,7 @@ const mStyles = StyleSheet.create({ }, }); +const transparentBackground = { backgroundColor: 'transparent' }; const OutputModalContent = ({ output, wallet, onUseCoin, frozen, setFrozen }) => { const { colors } = useTheme(); const { txMetadata, saveToDisk } = useStorage(); @@ -234,7 +233,12 @@ const OutputModalContent = ({ output, wallet, onUseCoin, frozen, setFrozen }) => ]} onChangeText={onMemoChange} /> - +