diff options
| author | Michael <michael.foiani@gmail.com> | 2021-07-02 14:45:18 -0400 |
|---|---|---|
| committer | Michael <michael.foiani@gmail.com> | 2021-07-02 14:45:18 -0400 |
| commit | 0d95e094b6370f32f6214d74a87ca56ea6eb477e (patch) | |
| tree | 9cb100002b07a2ccd2aecbdf727d1ddb33ca0df7 /src/components/profile | |
| parent | 643e7adcda3e5ae7aa3daeb86020f2e6f38d1448 (diff) | |
| parent | fa9c527f85d23a38b45c7efc41ec4590597fa7a1 (diff) | |
Merge master into this test branch.
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 dc4ebe32..910aa095 100644 --- a/src/components/profile/MomentMoreInfoDrawer.tsx +++ b/src/components/profile/MomentMoreInfoDrawer.tsx @@ -31,6 +31,13 @@ interface MomentMoreInfoDrawerProps extends ViewProps { tags: MomentTagType[]; } +type DrawerButtonType = [ + string, + (event: GestureResponderEvent) => void, + JSX.Element?, + TextStyle?, +][]; + const MomentMoreInfoDrawer: React.FC<MomentMoreInfoDrawerProps> = (props) => { const { setIsOpen, @@ -45,9 +52,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 |
