aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-12-07 15:27:27 -0800
committerGitHub <noreply@github.com>2020-12-07 18:27:27 -0500
commit5de44211bbadb451b5951eb3f77658d9bab42bc5 (patch)
tree367392891ec880fc24b58d56eb00d70cd95d15b6 /src/screens
parent6d1dedb676ff42d18b4e4892ae0c62e76cd1a6c4 (diff)
[TMA - 431] Make socials browsable (#134)
* Open socials apart from twitter on browser * Revert "Open socials apart from twitter on browser" This reverts commit 5b6626811ab7cf9a944b22a1d1d5c4047fe47c64. * Open socials apart from twitter on browser * Fixed * make twitter round * Make some more placeholders browsable Co-authored-by: Ivan Chen <ivan@tagg.id>
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/profile/SocialMediaTaggs.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/screens/profile/SocialMediaTaggs.tsx b/src/screens/profile/SocialMediaTaggs.tsx
index 5634c251..b058e38d 100644
--- a/src/screens/profile/SocialMediaTaggs.tsx
+++ b/src/screens/profile/SocialMediaTaggs.tsx
@@ -82,6 +82,7 @@ const SocialMediaTaggs: React.FC<SocialMediaTaggsProps> = ({
colors={[AVATAR_GRADIENT.start, AVATAR_GRADIENT.end]}>
<StatusBar barStyle={'light-content'} />
{/* Cropping the scroll view to mimic the presence of a header while preserving the gradient background */}
+
{accountData?.posts && accountData.posts.length > 0 ? (
<View
// we want a slightly bigger header here for the avatar image
@@ -104,7 +105,11 @@ const SocialMediaTaggs: React.FC<SocialMediaTaggsProps> = ({
post={post as TwitterPostType}
/>
) : (
- <TaggPost key={index} post={post as SimplePostType} />
+ <TaggPost
+ key={index}
+ post={post as SimplePostType}
+ social={socialMediaType}
+ />
),
)}
</ScrollView>