aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/SocialMediaInfo.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/taggs/SocialMediaInfo.tsx')
-rw-r--r--src/components/taggs/SocialMediaInfo.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/taggs/SocialMediaInfo.tsx b/src/components/taggs/SocialMediaInfo.tsx
index 0e93660d..a7ed6fe6 100644
--- a/src/components/taggs/SocialMediaInfo.tsx
+++ b/src/components/taggs/SocialMediaInfo.tsx
@@ -5,7 +5,7 @@ import {SocialIcon} from '..';
interface SocialMediaInfoProps {
fullname: string;
type: string;
- handle: string;
+ handle?: string;
}
const SocialMediaInfo: React.FC<SocialMediaInfoProps> = ({
@@ -15,7 +15,11 @@ const SocialMediaInfo: React.FC<SocialMediaInfoProps> = ({
}) => {
return (
<View style={styles.container}>
- <Text style={styles.handle}> @{handle} </Text>
+ {handle && type !== 'Facebook' ? (
+ <Text style={styles.handle}> @{handle} </Text>
+ ) : (
+ <></>
+ )}
<View style={styles.row}>
<View />
<SocialIcon style={styles.icon} social={type} />