diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-17 12:13:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 12:13:17 -0400 |
commit | efc84a7a5af59bcaf219d2ecb6767a3b29d01fae (patch) | |
tree | 0309419508ca511795d8984de302c93a9fe69a74 /src/components/moments/MomentPostHeader.tsx | |
parent | 183ce2b263e7282f42d204ebd59676b8e28352ec (diff) | |
parent | 33f5aa154457fb62099e56716ca5ae45feb98730 (diff) |
Merge pull request #424 from IvanIFChen/tma842-fixed-ellipses-state
[TMA-842] Fixed bottom drawer
Diffstat (limited to 'src/components/moments/MomentPostHeader.tsx')
-rw-r--r-- | src/components/moments/MomentPostHeader.tsx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/components/moments/MomentPostHeader.tsx b/src/components/moments/MomentPostHeader.tsx index d2e9fc49..3c3ee4c3 100644 --- a/src/components/moments/MomentPostHeader.tsx +++ b/src/components/moments/MomentPostHeader.tsx @@ -1,4 +1,5 @@ -import React, {useEffect, useState} from 'react'; +import {useNavigation} from '@react-navigation/native'; +import React, {useState} from 'react'; import { StyleSheet, Text, @@ -6,14 +7,13 @@ import { View, ViewProps, } from 'react-native'; -import {MomentMoreInfoDrawer} from '../profile'; -import {loadUserMoments} from '../../store/actions'; import {useDispatch, useSelector, useStore} from 'react-redux'; -import {ScreenType} from '../../types'; -import TaggAvatar from '../profile/TaggAvatar'; -import {useNavigation} from '@react-navigation/native'; +import {loadUserMoments} from '../../store/actions'; import {RootState} from '../../store/rootReducer'; +import {ScreenType} from '../../types'; import {fetchUserX, userXInStore} from '../../utils'; +import {MomentMoreInfoDrawer} from '../profile'; +import TaggAvatar from '../profile/TaggAvatar'; interface MomentPostHeaderProps extends ViewProps { userXId?: string; @@ -51,10 +51,6 @@ const MomentPostHeader: React.FC<MomentPostHeaderProps> = ({ }); }; - useEffect(() => { - setDrawerVisible(drawerVisible); - }, [drawerVisible]); - return ( <View style={[styles.container, style]}> <TouchableOpacity onPress={navigateToProfile} style={styles.header}> |