From 952eb1b9b58362cc4ead737554872197ae8a89b1 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 9 Feb 2021 14:06:06 -0500 Subject: added actual url to redirect, fixed bug for twitter handle redirect --- src/components/taggs/TwitterTaggPost.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/components/taggs') 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 = ({ - openTwitterProfileLink(post.in_reply_to?.handle) + handleOpenSocialUrlOnBrowser( + post.in_reply_to?.handle, + 'Twitter', + ) }> @{post.in_reply_to.handle} -- cgit v1.2.3-70-g09d2 From e60250a3661df67a6c0f3d7e17cf5943f03538c3 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Wed, 10 Feb 2021 11:06:33 -0800 Subject: does not add unlinked socials on SP --- src/components/taggs/TaggsBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/taggs') 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 = ({ ); i++; } - if (!userXId) { + if (!userXId && screenType !== ScreenType.SuggestedPeople) { for (let social of unlinkedSocials) { new_taggs.push( Date: Thu, 11 Feb 2021 13:38:53 -0800 Subject: updated instagram icon --- src/components/common/SocialIcon.tsx | 4 ++-- src/components/taggs/Tagg.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/taggs') diff --git a/src/components/common/SocialIcon.tsx b/src/components/common/SocialIcon.tsx index 0cd5d2a7..8216b6ff 100644 --- a/src/components/common/SocialIcon.tsx +++ b/src/components/common/SocialIcon.tsx @@ -17,9 +17,9 @@ const SocialIcon: React.FC = ({ }) => { switch (social) { case 'Instagram': - var icon = require('../../assets/socials/instagram-icon-white-bg.png'); + var icon = require('../../assets/socials/instagram-icon.png'); if (screenType === ScreenType.SuggestedPeople) { - icon = require('../../assets/socials/instagram-icon.png'); + icon = require('../../assets/socials/instagram-icon-white-bg.png'); } break; case 'Facebook': 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 = ({ {pickTheRightRingHere()} -- cgit v1.2.3-70-g09d2