aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2021-02-11 14:06:04 -0800
committerGitHub <noreply@github.com>2021-02-11 14:06:04 -0800
commitbcede9945a10ce7bf67aeeaf7f94e1a8984e7c0d (patch)
tree229e130c90307507e68f17b016f81cf310822ccf /src/components/taggs
parentda61f04d037d92fce7cf9852a3be79eb41158d5a (diff)
parent2561d20e17a697726d6b77accf79c9da2d1f6ef6 (diff)
Merge branch 'master' into tma641-animation-tutorial
Diffstat (limited to 'src/components/taggs')
-rw-r--r--src/components/taggs/Tagg.tsx2
-rw-r--r--src/components/taggs/TaggsBar.tsx2
-rw-r--r--src/components/taggs/TwitterTaggPost.tsx11
3 files changed, 7 insertions, 8 deletions
diff --git a/src/components/taggs/Tagg.tsx b/src/components/taggs/Tagg.tsx
index 29b55786..bb450b64 100644
--- a/src/components/taggs/Tagg.tsx
+++ b/src/components/taggs/Tagg.tsx
@@ -148,7 +148,7 @@ const Tagg: React.FC<TaggProps> = ({
<SocialIcon
style={styles.icon}
social={social}
- screenType={ScreenType.Profile}
+ screenType={screenType}
/>
{pickTheRightRingHere()}
</TouchableOpacity>
diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx
index cc0c70a7..e7bdb0f2 100644
--- a/src/components/taggs/TaggsBar.tsx
+++ b/src/components/taggs/TaggsBar.tsx
@@ -77,7 +77,7 @@ const TaggsBar: React.FC<TaggsBarProps> = ({
);
i++;
}
- if (!userXId) {
+ if (!userXId && screenType !== ScreenType.SuggestedPeople) {
for (let social of unlinkedSocials) {
new_taggs.push(
<Tagg
diff --git a/src/components/taggs/TwitterTaggPost.tsx b/src/components/taggs/TwitterTaggPost.tsx
index 0cfde857..834e32ef 100644
--- a/src/components/taggs/TwitterTaggPost.tsx
+++ b/src/components/taggs/TwitterTaggPost.tsx
@@ -3,11 +3,7 @@ import {Image, Linking, StyleSheet, View} from 'react-native';
import {Text} from 'react-native-animatable';
import Hyperlink from 'react-native-hyperlink';
import LinearGradient from 'react-native-linear-gradient';
-import {
- AVATAR_DIM,
- TAGGS_GRADIENT,
- TAGG_LIGHT_BLUE,
-} from '../../constants';
+import {AVATAR_DIM, TAGGS_GRADIENT, TAGG_LIGHT_BLUE} from '../../constants';
import {TwitterPostType} from '../../types';
import {handleOpenSocialUrlOnBrowser, SCREEN_WIDTH} from '../../utils';
import {DateLabel, PostCarousel} from '../common';
@@ -94,7 +90,10 @@ const TwitterTaggPost: React.FC<TwitterTaggPostProps> = ({
<Text
style={styles.replyHandleText}
onPress={() =>
- openTwitterProfileLink(post.in_reply_to?.handle)
+ handleOpenSocialUrlOnBrowser(
+ post.in_reply_to?.handle,
+ 'Twitter',
+ )
}>
@{post.in_reply_to.handle}
</Text>