From b882db501890e3132530a58016b5f5f47fa70aca Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Thu, 4 Aug 2022 15:40:15 -0700 Subject: [PATCH] fix ESlint and errors from merge --- web/components/comments-list.tsx | 1 - web/components/feed/feed-comments.tsx | 2 +- web/components/groups/group-chat.tsx | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/components/comments-list.tsx b/web/components/comments-list.tsx index 912023ad..2a467f6d 100644 --- a/web/components/comments-list.tsx +++ b/web/components/comments-list.tsx @@ -8,7 +8,6 @@ import { RelativeTimestamp } from './relative-timestamp' import { UserLink } from './user-page' import { User } from 'common/user' import { Col } from './layout/col' -import { Linkify } from './linkify' import { groupBy } from 'lodash' import { Content } from './editor' diff --git a/web/components/feed/feed-comments.tsx b/web/components/feed/feed-comments.tsx index 674a7ebc..fd2dbde2 100644 --- a/web/components/feed/feed-comments.tsx +++ b/web/components/feed/feed-comments.tsx @@ -28,7 +28,7 @@ import { Tipper } from '../tipper' import { CommentTipMap, CommentTips } from 'web/hooks/use-tip-txns' import { useWindowSize } from 'web/hooks/use-window-size' import { Content, TextEditor, useTextEditor } from '../editor' -import { Editor, JSONContent } from '@tiptap/react' +import { Editor } from '@tiptap/react' export function FeedCommentThread(props: { contract: Contract diff --git a/web/components/groups/group-chat.tsx b/web/components/groups/group-chat.tsx index 58a5e7f4..97b46375 100644 --- a/web/components/groups/group-chat.tsx +++ b/web/components/groups/group-chat.tsx @@ -92,8 +92,8 @@ export function GroupChat(props: { useEffect(() => { // is mobile? - if (inputRef && width && width > 720) inputRef.focus() - }, [inputRef, width]) + if (width && width > 720) focusInput() + }, [width, focusInput]) function onReplyClick(comment: Comment) { setReplyToUser({ id: comment.userId, username: comment.userUsername })