From 23244e30b9c05155673182491764ffbb5194bfbc Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Mon, 17 Jan 2022 16:19:48 -0400 Subject: [PATCH] Fix lint --- app/views/DiscussionsView/Item.tsx | 8 ++++---- app/views/DiscussionsView/index.tsx | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/DiscussionsView/Item.tsx b/app/views/DiscussionsView/Item.tsx index c8ee5c8aa..51f26a1ca 100644 --- a/app/views/DiscussionsView/Item.tsx +++ b/app/views/DiscussionsView/Item.tsx @@ -66,8 +66,8 @@ interface IItem { const Item = ({ item, baseUrl, user, onPress }: IItem): JSX.Element => { const { theme } = useTheme(); const username = item?.u?.username; - let messageTime; - let messageDate; + let messageTime: string; + let messageDate: string; if (item?.ts) { messageTime = moment(item.ts).format('LT'); @@ -86,7 +86,7 @@ const Item = ({ item, baseUrl, user, onPress }: IItem): JSX.Element => { {username} - {messageTime} + {messageTime!} {/* @ts-ignore */} @@ -100,7 +100,7 @@ const Item = ({ item, baseUrl, user, onPress }: IItem): JSX.Element => { preview /> - + diff --git a/app/views/DiscussionsView/index.tsx b/app/views/DiscussionsView/index.tsx index 90a4ee132..65b5c0876 100644 --- a/app/views/DiscussionsView/index.tsx +++ b/app/views/DiscussionsView/index.tsx @@ -130,7 +130,6 @@ const DiscussionsView = ({ navigation, route }: IDiscussionsViewProps): JSX.Elem ),