aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/TaggUserRowCell.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-04 17:12:22 -0400
committerIvan Chen <ivan@tagg.id>2021-05-04 20:48:07 -0400
commit9795083f41e6417c32d9c070ab0b2bf4aca67012 (patch)
treeb7acaf3d87432fc118dec4e39668e6a80e0b3487 /src/components/common/TaggUserRowCell.tsx
parentc5cfb608eeb512c3b00c20776b63faf70943b76e (diff)
fixed merge issues
Diffstat (limited to 'src/components/common/TaggUserRowCell.tsx')
-rw-r--r--src/components/common/TaggUserRowCell.tsx11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/components/common/TaggUserRowCell.tsx b/src/components/common/TaggUserRowCell.tsx
index 446f5e87..446dedc9 100644
--- a/src/components/common/TaggUserRowCell.tsx
+++ b/src/components/common/TaggUserRowCell.tsx
@@ -1,7 +1,8 @@
import React from 'react';
-import {Image, StyleSheet, Text, TouchableOpacity, View} from 'react-native';
+import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';
import {ProfilePreviewType} from '../../types';
-import {defaultUserProfile, normalize} from '../../utils';
+import {normalize} from '../../utils';
+import Avatar from './Avatar';
type TaggUserRowCellProps = {
onPress: () => void;
@@ -10,11 +11,7 @@ type TaggUserRowCellProps = {
const TaggUserRowCell: React.FC<TaggUserRowCellProps> = ({onPress, user}) => {
return (
<TouchableOpacity onPress={onPress} style={styles.container}>
- <Image
- defaultSource={defaultUserProfile()}
- source={{uri: user.thumbnail_url}}
- style={styles.image}
- />
+ <Avatar style={styles.image} uri={user.thumbnail_url} />
<View style={styles.textContent}>
<Text style={styles.username}>{`@${user.username}`}</Text>
<Text style={styles.name}>