Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: avoid go to addWallet when clicking on blank space #1239

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions src/navigation/wallet/screens/KeyOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ import {
useRoute,
useTheme,
} from '@react-navigation/native';
import {
FlatList,
LogBox,
RefreshControl,
TouchableOpacity,
View,
} from 'react-native';
import {FlatList, LogBox, RefreshControl, TouchableOpacity} from 'react-native';
import styled from 'styled-components/native';
import haptic from '../../../components/haptic-feedback/haptic';
import WalletRow, {WalletRowProps} from '../../../components/list/WalletRow';
Expand Down Expand Up @@ -119,9 +113,12 @@ const WalletListHeader = styled.View`
margin-top: 10px;
`;

const WalletListFooter = styled.TouchableOpacity`
const WalletListFooterContainer = styled.View`
padding: 10px 10px 100px 10px;
margin-top: 15px;
`;

const WalletListFooter = styled.TouchableOpacity`
flex-direction: row;
align-items: center;
`;
Expand Down Expand Up @@ -685,17 +682,19 @@ const KeyOverview = () => {
}}
ListFooterComponent={() => {
return (
<WalletListFooter
activeOpacity={ActiveOpacity}
onPress={async () => {
haptic('impactLight');
navigation.navigate('AddingOptions', {
key,
});
}}>
<Icons.Add />
<WalletListFooterText>{t('Add Wallet')}</WalletListFooterText>
</WalletListFooter>
<WalletListFooterContainer>
<WalletListFooter
activeOpacity={ActiveOpacity}
onPress={async () => {
haptic('impactLight');
navigation.navigate('AddingOptions', {
key,
});
}}>
<Icons.Add />
<WalletListFooterText>{t('Add Wallet')}</WalletListFooterText>
</WalletListFooter>
</WalletListFooterContainer>
);
}}
data={
Expand Down