aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-05-24 14:04:02 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-05-24 14:04:02 -0700
commitb8958cda3485af46181e8a6091f12718acfb621c (patch)
tree9e3422d22e4ccbd71e0dfa4f608e155d57d28092 /src/components
parente09f37e73b45a58c0a6ebf8ad8b5216c91713f26 (diff)
Fix tag lint issues
Diffstat (limited to 'src/components')
-rw-r--r--src/components/moments/TagFriendsFoooter.tsx35
1 files changed, 20 insertions, 15 deletions
diff --git a/src/components/moments/TagFriendsFoooter.tsx b/src/components/moments/TagFriendsFoooter.tsx
index 6b8fc62a..7b109877 100644
--- a/src/components/moments/TagFriendsFoooter.tsx
+++ b/src/components/moments/TagFriendsFoooter.tsx
@@ -27,29 +27,23 @@ const TagFriendsFooter: React.FC<TagFriendsFooterProps> = ({
selectedUsers: taggedUsers,
})
}
- style={{
- flexDirection: 'column',
- alignItems: 'center',
- }}>
+ style={styles.tagMoreContainer}>
<Image
source={require('../../assets/icons/tagging/white-plus-icon.png')}
- style={{width: 38, height: 38, top: -2}}
+ style={styles.tagMoreIcon}
/>
- <Text style={styles.taggMoreLabel}>{'Tagg More'}</Text>
+ <Text style={styles.tagMoreLabel}>{'Tagg More'}</Text>
</TouchableOpacity>
);
const TaggedUser = (user: ProfilePreviewType) => (
- <View style={{flexDirection: 'row-reverse'}} key={user.id}>
+ <View style={styles.taggedUserContainer} key={user.id}>
<TouchableOpacity
style={styles.closeIconContainer}
onPress={() => handleRemoveTag(user)}>
<Image
source={require('../../assets/icons/tagging/x-icon.png')}
- style={{
- width: 20,
- height: 20,
- }}
+ style={styles.closeIcon}
/>
</TouchableOpacity>
<ProfilePreview
@@ -67,9 +61,7 @@ const TagFriendsFooter: React.FC<TagFriendsFooterProps> = ({
*/
const TagFriendsTitle = () => (
<TouchableOpacity
- style={{
- flexDirection: 'row',
- }}
+ style={styles.tagFriendsTitleContainer}
disabled={taggedUsers.length !== 0}
onPress={() =>
navigation.navigate('TagSelectionScreen', {
@@ -112,7 +104,7 @@ const styles = StyleSheet.create({
flexWrap: 'wrap',
justifyContent: 'flex-start',
},
- taggMoreLabel: {
+ tagMoreLabel: {
fontWeight: '500',
fontSize: normalize(9),
lineHeight: normalize(10),
@@ -127,6 +119,19 @@ const styles = StyleSheet.create({
right: -20,
zIndex: 1,
},
+ tagMoreContainer: {
+ flexDirection: 'column',
+ alignItems: 'center',
+ },
+ tagMoreIcon: {width: 38, height: 38, top: -2},
+ taggedUserContainer: {flexDirection: 'row-reverse'},
+ closeIcon: {
+ width: 20,
+ height: 20,
+ },
+ tagFriendsTitleContainer: {
+ flexDirection: 'row',
+ },
});
export default TagFriendsFooter;