diff options
Diffstat (limited to 'src/components/taggs/Tagg.tsx')
-rw-r--r-- | src/components/taggs/Tagg.tsx | 20 |
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; |