aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/Tagg.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2021-04-23 15:06:01 -0700
committerGitHub <noreply@github.com>2021-04-23 15:06:01 -0700
commita27963c51aa2c0b65dd23b5e7211addf5995046f (patch)
tree3c2b2328384630b6388ed77773ee6470e17df23d /src/components/taggs/Tagg.tsx
parentce5bf93fef3f5108e0dca35bf24accb4d9d654bb (diff)
parent5e247c2045fa53616008aae73f0192ffed048709 (diff)
Merge branch 'master' into tma-807-onpress-indicator
Diffstat (limited to 'src/components/taggs/Tagg.tsx')
-rw-r--r--src/components/taggs/Tagg.tsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/taggs/Tagg.tsx b/src/components/taggs/Tagg.tsx
index 94011e86..4a58bacb 100644
--- a/src/components/taggs/Tagg.tsx
+++ b/src/components/taggs/Tagg.tsx
@@ -1,31 +1,31 @@
import {useNavigation} from '@react-navigation/native';
import React, {Fragment, useState} from 'react';
import {Alert, Linking, StyleSheet, TouchableOpacity, View} from 'react-native';
+import {useSelector} from 'react-redux';
import PurpleRingPlus from '../../assets/icons/purple_ring+.svg';
import PurpleRing from '../../assets/icons/purple_ring.svg';
import RingPlus from '../../assets/icons/ring+.svg';
-import Ring from '../../assets/icons/ring.svg';
import WhiteRing from '../../assets/icons/ring-white.svg';
+import Ring from '../../assets/icons/ring.svg';
import {
INTEGRATED_SOCIAL_LIST,
SOCIAL_ICON_SIZE_ADJUSTMENT,
TAGG_RING_DIM,
} from '../../constants';
import {
+ ERROR_LINK,
+ ERROR_UNABLE_TO_FIND_PROFILE,
+ SUCCESS_LINK,
+} from '../../constants/strings';
+import {
getNonIntegratedURL,
handlePressForAuthBrowser,
registerNonIntegratedSocialLink,
} from '../../services';
-import {SmallSocialIcon, SocialIcon, SocialLinkModal} from '../common';
+import {RootState} from '../../store/rootReducer';
import {ScreenType, UserType} from '../../types';
-import {
- ERROR_LINK,
- ERROR_UNABLE_TO_FIND_PROFILE,
- SUCCESS_LINK,
-} from '../../constants/strings';
import {canViewProfile, normalize} from '../../utils';
-import {RootState} from '../../store/rootReducer';
-import {useStore} from 'react-redux';
+import {SmallSocialIcon, SocialIcon, SocialLinkModal} from '../common';
interface TaggProps {
social: string;
@@ -51,7 +51,7 @@ const Tagg: React.FC<TaggProps> = ({
whiteRing,
}) => {
const navigation = useNavigation();
- const state: RootState = useStore().getState();
+ const state = useSelector((s: RootState) => s);
const [modalVisible, setModalVisible] = useState(false);
const youMayPass = isLinked || userXId;