From 16f6341daff56f827fbb6c6ade9cf1238e8e5f3e Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Wed, 23 Jun 2021 14:22:29 -0400 Subject: Lint --- src/components/profile/MomentMoreInfoDrawer.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/components/profile') 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 = (props) => { const { setIsOpen, @@ -46,9 +53,7 @@ const MomentMoreInfoDrawer: React.FC = (props) => { const navigation = useNavigation(); - const [drawerButtons, setDrawerButtons] = useState< - [string, (event: GestureResponderEvent) => void, JSX.Element?, TextStyle?][] - >([]); + const [drawerButtons, setDrawerButtons] = useState([]); const handleDeleteMoment = async () => { setIsOpen(false); -- cgit v1.2.3-70-g09d2