aboutsummaryrefslogtreecommitdiff
path: root/src/components/friends/InviteFriendTile.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/friends/InviteFriendTile.tsx')
-rw-r--r--src/components/friends/InviteFriendTile.tsx30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/components/friends/InviteFriendTile.tsx b/src/components/friends/InviteFriendTile.tsx
index f56d3514..9613b1ac 100644
--- a/src/components/friends/InviteFriendTile.tsx
+++ b/src/components/friends/InviteFriendTile.tsx
@@ -6,8 +6,6 @@ import {
TouchableWithoutFeedback,
View,
} from 'react-native';
-import {useSelector} from 'react-redux';
-import {RootState} from '../../store/rootReducer';
import {TAGG_LIGHT_BLUE} from '../../constants';
import {inviteFriendService} from '../../services';
import {normalize} from '../../utils';
@@ -48,24 +46,11 @@ const InviteFriendTile: React.FC<InviteFriendTileProps> = ({item}) => {
return (
<TouchableWithoutFeedback>
<View style={styles.container}>
- <View
- style={{
- flexDirection: 'column',
- height: normalize(42),
- justifyContent: 'space-around',
- }}>
+ <View style={styles.bodyContainer}>
<Text style={styles.label}>
{item.firstName + ' ' + item.lastName}
</Text>
- <Text
- style={{
- fontSize: normalize(12),
- fontWeight: '400',
- color: '#6C6C6C',
- letterSpacing: normalize(0.1),
- }}>
- {formatedPhoneNumber}
- </Text>
+ <Text style={styles.phoneNumber}>{formatedPhoneNumber}</Text>
</View>
<TouchableOpacity
disabled={invited}
@@ -88,10 +73,21 @@ const styles = StyleSheet.create({
height: normalize(42),
marginBottom: '5%',
},
+ bodyContainer: {
+ flexDirection: 'column',
+ height: normalize(42),
+ justifyContent: 'space-around',
+ },
label: {
fontWeight: '500',
fontSize: normalize(14),
},
+ phoneNumber: {
+ fontSize: normalize(12),
+ fontWeight: '400',
+ color: '#6C6C6C',
+ letterSpacing: normalize(0.1),
+ },
button: {
alignSelf: 'center',
justifyContent: 'center',