Skip to content

Commit

Permalink
feat(recipient): Remove v from recipients/contacts (#4235)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnian0826 authored Sep 29, 2023
1 parent f35817c commit 75bcc98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 72 deletions.
7 changes: 1 addition & 6 deletions src/recipients/RecipientItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useTranslation } from 'react-i18next'
import { ActivityIndicator, StyleSheet, Text, View } from 'react-native'
import ContactCircle from 'src/components/ContactCircle'
import Touchable from 'src/components/Touchable'
import Logo, { LogoTypes } from 'src/icons/Logo'
import { Recipient, getDisplayDetail, getDisplayName } from 'src/recipients/recipient'
import colors from 'src/styles/colors'
import fontStyles from 'src/styles/fonts'
Expand Down Expand Up @@ -34,11 +33,7 @@ function RecipientItem({ recipient, onSelectRecipient, loading }: Props) {
{recipient.name && <Text style={styles.phone}>{getDisplayDetail(recipient)}</Text>}
</View>
<View style={styles.rightIconContainer}>
{loading ? (
<ActivityIndicator size="small" color={colors.greenUI} />
) : recipient.address ? (
<Logo type={LogoTypes.GREEN} />
) : null}
{loading ? <ActivityIndicator size="small" color={colors.greenUI} /> : null}
</View>
</View>
</Touchable>
Expand Down
23 changes: 1 addition & 22 deletions src/recipients/__snapshots__/RecipientItem.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -138,28 +138,7 @@ exports[`RecipientItem renders correctly 1`] = `
"justifyContent": "center",
}
}
>
<svg
fill="none"
height={25}
style={{}}
viewBox="0 0 25 25"
width={25}
>
<path
d="M9.86842 22.3684C13.8653 22.3684 17.1053 19.1284 17.1053 15.1316C17.1053 11.1348 13.8653 7.89476 9.86842 7.89476C5.87158 7.89476 2.63158 11.1348 2.63158 15.1316C2.63158 19.1284 5.87158 22.3684 9.86842 22.3684ZM9.86842 25C4.41842 25 0 20.5816 0 15.1316C0 9.6816 4.41842 5.26318 9.86842 5.26318C15.3184 5.26318 19.7368 9.6816 19.7368 15.1316C19.7368 20.5816 15.3184 25 9.86842 25Z"
style={{}}
/>
<path
d="M15.1316 17.1053C19.1284 17.1053 22.3684 13.8653 22.3684 9.86842C22.3684 5.87158 19.1284 2.63158 15.1316 2.63158C11.1348 2.63158 7.89476 5.87158 7.89476 9.86842C7.89476 13.8653 11.1348 17.1053 15.1316 17.1053ZM15.1316 19.7368C9.6816 19.7368 5.26318 15.3184 5.26318 9.86842C5.26318 4.41842 9.6816 0 15.1316 0C20.5816 0 25 4.41842 25 9.86842C25 15.3184 20.5816 19.7368 15.1316 19.7368Z"
style={{}}
/>
<path
d="M15.4577 19.7369C16.1419 18.9077 16.6324 17.9361 16.8932 16.8932C17.9361 16.6324 18.9077 16.1421 19.7369 15.4579C19.699 16.6658 19.439 17.8563 18.9695 18.9698C17.8561 19.439 16.6656 19.6992 15.4577 19.7369ZM8.10687 8.10687C7.06397 8.36766 6.09239 8.85792 5.26318 9.54213C5.30108 8.33424 5.56108 7.14371 6.03055 6.03029C7.14397 5.56108 8.3345 5.30082 9.54239 5.26318C8.85818 6.09239 8.36766 7.06397 8.10687 8.10687Z"
style={{}}
/>
</svg>
</View>
/>
</View>
</View>
`;
46 changes: 2 additions & 44 deletions src/send/__snapshots__/Send.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -893,28 +893,7 @@ exports[`Send renders correctly with invite rewards disabled 1`] = `
"justifyContent": "center",
}
}
>
<svg
fill="none"
height={25}
style={{}}
viewBox="0 0 25 25"
width={25}
>
<path
d="M9.86842 22.3684C13.8653 22.3684 17.1053 19.1284 17.1053 15.1316C17.1053 11.1348 13.8653 7.89476 9.86842 7.89476C5.87158 7.89476 2.63158 11.1348 2.63158 15.1316C2.63158 19.1284 5.87158 22.3684 9.86842 22.3684ZM9.86842 25C4.41842 25 0 20.5816 0 15.1316C0 9.6816 4.41842 5.26318 9.86842 5.26318C15.3184 5.26318 19.7368 9.6816 19.7368 15.1316C19.7368 20.5816 15.3184 25 9.86842 25Z"
style={{}}
/>
<path
d="M15.1316 17.1053C19.1284 17.1053 22.3684 13.8653 22.3684 9.86842C22.3684 5.87158 19.1284 2.63158 15.1316 2.63158C11.1348 2.63158 7.89476 5.87158 7.89476 9.86842C7.89476 13.8653 11.1348 17.1053 15.1316 17.1053ZM15.1316 19.7368C9.6816 19.7368 5.26318 15.3184 5.26318 9.86842C5.26318 4.41842 9.6816 0 15.1316 0C20.5816 0 25 4.41842 25 9.86842C25 15.3184 20.5816 19.7368 15.1316 19.7368Z"
style={{}}
/>
<path
d="M15.4577 19.7369C16.1419 18.9077 16.6324 17.9361 16.8932 16.8932C17.9361 16.6324 18.9077 16.1421 19.7369 15.4579C19.699 16.6658 19.439 17.8563 18.9695 18.9698C17.8561 19.439 16.6656 19.6992 15.4577 19.7369ZM8.10687 8.10687C7.06397 8.36766 6.09239 8.85792 5.26318 9.54213C5.30108 8.33424 5.56108 7.14371 6.03055 6.03029C7.14397 5.56108 8.3345 5.30082 9.54239 5.26318C8.85818 6.09239 8.36766 7.06397 8.10687 8.10687Z"
style={{}}
/>
</svg>
</View>
/>
</View>
</View>
</View>
Expand Down Expand Up @@ -1100,28 +1079,7 @@ exports[`Send renders correctly with invite rewards disabled 1`] = `
"justifyContent": "center",
}
}
>
<svg
fill="none"
height={25}
style={{}}
viewBox="0 0 25 25"
width={25}
>
<path
d="M9.86842 22.3684C13.8653 22.3684 17.1053 19.1284 17.1053 15.1316C17.1053 11.1348 13.8653 7.89476 9.86842 7.89476C5.87158 7.89476 2.63158 11.1348 2.63158 15.1316C2.63158 19.1284 5.87158 22.3684 9.86842 22.3684ZM9.86842 25C4.41842 25 0 20.5816 0 15.1316C0 9.6816 4.41842 5.26318 9.86842 5.26318C15.3184 5.26318 19.7368 9.6816 19.7368 15.1316C19.7368 20.5816 15.3184 25 9.86842 25Z"
style={{}}
/>
<path
d="M15.1316 17.1053C19.1284 17.1053 22.3684 13.8653 22.3684 9.86842C22.3684 5.87158 19.1284 2.63158 15.1316 2.63158C11.1348 2.63158 7.89476 5.87158 7.89476 9.86842C7.89476 13.8653 11.1348 17.1053 15.1316 17.1053ZM15.1316 19.7368C9.6816 19.7368 5.26318 15.3184 5.26318 9.86842C5.26318 4.41842 9.6816 0 15.1316 0C20.5816 0 25 4.41842 25 9.86842C25 15.3184 20.5816 19.7368 15.1316 19.7368Z"
style={{}}
/>
<path
d="M15.4577 19.7369C16.1419 18.9077 16.6324 17.9361 16.8932 16.8932C17.9361 16.6324 18.9077 16.1421 19.7369 15.4579C19.699 16.6658 19.439 17.8563 18.9695 18.9698C17.8561 19.439 16.6656 19.6992 15.4577 19.7369ZM8.10687 8.10687C7.06397 8.36766 6.09239 8.85792 5.26318 9.54213C5.30108 8.33424 5.56108 7.14371 6.03055 6.03029C7.14397 5.56108 8.3345 5.30082 9.54239 5.26318C8.85818 6.09239 8.36766 7.06397 8.10687 8.10687Z"
style={{}}
/>
</svg>
</View>
/>
</View>
</View>
<View
Expand Down

0 comments on commit 75bcc98

Please sign in to comment.