diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-12 17:28:38 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-12 17:28:38 -0400 |
commit | 2d83d11558fd19c18fba4042c94657c3ef9f0bb5 (patch) | |
tree | 84e3b88ea51d7c456301097f07aebebc0473745b /src/components/profile/Content.tsx | |
parent | 007c2e728c152aa2b038d3e30ce637960189cf25 (diff) |
added icons, fixed picker almost
Diffstat (limited to 'src/components/profile/Content.tsx')
-rw-r--r-- | src/components/profile/Content.tsx | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/components/profile/Content.tsx b/src/components/profile/Content.tsx index 0052b61d..c70d6df5 100644 --- a/src/components/profile/Content.tsx +++ b/src/components/profile/Content.tsx @@ -1,14 +1,9 @@ -import React, { - useCallback, - useContext, - useEffect, - useRef, - useState, -} from 'react'; +import {useScrollToTop} from '@react-navigation/native'; +import React, {useCallback, useEffect, useRef, useState} from 'react'; import {LayoutChangeEvent, RefreshControl, StyleSheet} from 'react-native'; import Animated, { - useSharedValue, useAnimatedScrollHandler, + useSharedValue, } from 'react-native-reanimated'; import {useDispatch, useSelector, useStore} from 'react-redux'; import { @@ -36,8 +31,6 @@ import ProfileBody from './ProfileBody'; import ProfileCutout from './ProfileCutout'; import ProfileHeader from './ProfileHeader'; import PublicProfile from './PublicProfile'; -import {useScrollToTop} from '@react-navigation/native'; -import {ChatContext} from '../../App'; interface ContentProps { userXId: string | undefined; @@ -59,8 +52,6 @@ const Content: React.FC<ContentProps> = ({userXId, screenType}) => { ); const state: RootState = useStore().getState(); - const {chatClient} = useContext(ChatContext); - /* * Used to imperatively scroll to the top when presenting the moment tutorial. */ @@ -77,7 +68,6 @@ const Content: React.FC<ContentProps> = ({userXId, screenType}) => { const [isBlocked, setIsBlocked] = useState<boolean>(false); const [profileBodyHeight, setProfileBodyHeight] = useState(0); const [socialsBarHeight, setSocialsBarHeight] = useState(0); - const [shouldBounce, setShouldBounce] = useState<boolean>(true); const [refreshing, setRefreshing] = useState<boolean>(false); const onRefresh = useCallback(() => { |