fix ESlint and errors from merge

This commit is contained in:
Sinclair Chen 2022-08-04 15:40:15 -07:00
parent 075cbc9fdb
commit b882db5018
3 changed files with 3 additions and 4 deletions

View File

@ -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'

View File

@ -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

View File

@ -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 })