diff options
Diffstat (limited to 'src/components/common')
-rw-r--r-- | src/components/common/AvatarTitle.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/components/common/AvatarTitle.tsx b/src/components/common/AvatarTitle.tsx index f3105f70..65ae7486 100644 --- a/src/components/common/AvatarTitle.tsx +++ b/src/components/common/AvatarTitle.tsx @@ -3,15 +3,13 @@ import {Image, StyleSheet, View} from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import {TAGGS_GRADIENT} from '../../constants'; import {AuthContext, ProfileContext} from '../../routes/'; +import {loadAvatar} from '../../services'; +import AsyncStorage from '@react-native-community/async-storage'; type AvatarTitleProps = { - isProfileView: boolean; + avatar: string; }; - -const AvatarTitle: React.FC<AvatarTitleProps> = ({isProfileView}) => { - const {avatar} = isProfileView - ? React.useContext(ProfileContext) - : React.useContext(AuthContext); +const AvatarTitle: React.FC<AvatarTitleProps> = ({avatar}) => { return ( <View style={[styles.container]}> <LinearGradient |