diff options
author | Ivan Chen <ivan@thetaggid.com> | 2020-10-22 17:42:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 17:42:29 -0400 |
commit | 52a3fe743e6122d157eaab3ad7bab0c70a96676b (patch) | |
tree | 564c5df3864a0d0fe09f7c18613d4cf5a1093170 /src/components/taggs/SocialMediaInfo.tsx | |
parent | 08f9aebbaef871629323767c93c9e54cea527bed (diff) |
[TMA-242] Twitter and Facebook Tagg View (#63)
* modified the way we store social media data, initial skeleton
* MVP? Twitter done?
* cleaned up some things
* forgot to lint and cleaned up some more code
* minor change to text display
* fixed some UI bug, linting, and minor adjustment to posts UI
* fixed a couple of things
* added DateLabel, Facebook taggs view, fixed minor stuff
* Some small changes for the PR
* removed unused Feed
Co-authored-by: Ashm Walia <ashmwalia@outlook.com>
Diffstat (limited to 'src/components/taggs/SocialMediaInfo.tsx')
-rw-r--r-- | src/components/taggs/SocialMediaInfo.tsx | 8 |
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} /> |