diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-06-23 16:26:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-23 16:26:12 -0400 |
| commit | 8c2b915678b852f597c38ab00d18c22bf62d2051 (patch) | |
| tree | 7a268ef4d84b7870ded9020af637785c452a7923 /src/components/profile | |
| parent | cd5863264d0fe954e63d8cc93fc4ee6ab509f49b (diff) | |
| parent | 16f6341daff56f827fbb6c6ade9cf1238e8e5f3e (diff) | |
Merge pull request #473 from IvanIFChen/tma938-video-from-camera-video-streaming
[TMA-938] Video From Camera & Video Streaming
Diffstat (limited to 'src/components/profile')
| -rw-r--r-- | src/components/profile/MomentMoreInfoDrawer.tsx | 11 | ||||
| -rw-r--r-- | src/components/profile/ProfileBody.tsx | 1 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/components/profile/MomentMoreInfoDrawer.tsx b/src/components/profile/MomentMoreInfoDrawer.tsx index a796ffd8..c70df875 100644 --- a/src/components/profile/MomentMoreInfoDrawer.tsx +++ b/src/components/profile/MomentMoreInfoDrawer.tsx @@ -32,6 +32,13 @@ interface MomentMoreInfoDrawerProps extends ViewProps { tags: MomentTagType[]; } +type DrawerButtonType = [ + string, + (event: GestureResponderEvent) => void, + JSX.Element?, + TextStyle?, +][]; + const MomentMoreInfoDrawer: React.FC<MomentMoreInfoDrawerProps> = (props) => { const { setIsOpen, @@ -46,9 +53,7 @@ const MomentMoreInfoDrawer: React.FC<MomentMoreInfoDrawerProps> = (props) => { const navigation = useNavigation(); - const [drawerButtons, setDrawerButtons] = useState< - [string, (event: GestureResponderEvent) => void, JSX.Element?, TextStyle?][] - >([]); + const [drawerButtons, setDrawerButtons] = useState<DrawerButtonType>([]); const handleDeleteMoment = async () => { setIsOpen(false); diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx index c0ee508a..cc001516 100644 --- a/src/components/profile/ProfileBody.tsx +++ b/src/components/profile/ProfileBody.tsx @@ -80,7 +80,6 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ ); }}>{`${website}`}</Text> )} - {userXId && isBlocked && ( <View style={styles.toggleButtonContainer}> <ToggleButton |
