From 5d84468561b06d035cefc8711b0f3706a854aff8 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Mon, 24 Jan 2022 15:12:09 -0400 Subject: [PATCH] Minor tweaks --- app/containers/markdown/index.tsx | 2 +- app/views/DiscussionsView/Item.tsx | 10 +++++----- app/views/ThreadMessagesView/Item.tsx | 22 ++++++++++++---------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/app/containers/markdown/index.tsx b/app/containers/markdown/index.tsx index e8e2ea06b..f11ab6730 100644 --- a/app/containers/markdown/index.tsx +++ b/app/containers/markdown/index.tsx @@ -25,7 +25,7 @@ import { isValidURL } from '../../utils/url'; import NewMarkdown from './new'; interface IMarkdownProps { - msg: string; + msg?: string; md: MarkdownAST; mentions: UserMention[]; getCustomEmoji: Function; diff --git a/app/views/DiscussionsView/Item.tsx b/app/views/DiscussionsView/Item.tsx index af2e18a03..c88395823 100644 --- a/app/views/DiscussionsView/Item.tsx +++ b/app/views/DiscussionsView/Item.tsx @@ -71,21 +71,21 @@ const Item = ({ item, baseUrl, onPress }: IItem): JSX.Element => { onPress(item)} testID={`discussions-view-${item.msg}`} - style={{ backgroundColor: themes[theme!].backgroundColor }}> + style={{ backgroundColor: themes[theme].backgroundColor }}> - + {username} - {messageTime!} + {messageTime ? {messageTime} : null} - {makeThreadName(item) && item && username ? ( + {username ? ( /* @ts-ignore */ {time} - + {makeThreadName(item) && username ? ( + /* @ts-ignore */ + + ) : null} {badgeColor ? : null}