From ed41990200a583bbb350850bc71e43e30998e2dd Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 5 Jun 2023 16:04:13 -0700 Subject: [PATCH] rebase --- web/components/chat/ChatTextField/ChatTextField.tsx | 4 ++-- web/components/ui/Content/Content.tsx | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/web/components/chat/ChatTextField/ChatTextField.tsx b/web/components/chat/ChatTextField/ChatTextField.tsx index 8a5b6560c..4df924a8e 100644 --- a/web/components/chat/ChatTextField/ChatTextField.tsx +++ b/web/components/chat/ChatTextField/ChatTextField.tsx @@ -2,7 +2,7 @@ import { Popover, Select } from 'antd'; import React, { FC, useCallback, useMemo, useRef, useState } from 'react'; import { useRecoilValue } from 'recoil'; -import { Transforms, createEditor, BaseEditor, Text, Descendant, Editor } from 'slate'; +import { Transforms, createEditor, BaseEditor, Text, Descendant, Editor, Range } from 'slate'; import { Slate, DefaultPlaceholder, @@ -186,7 +186,7 @@ export const ChatTextField: FC = ({ const editor = useMemo(() => withReact(withMentions(withImages(createEditor()))), []); const inputRef = useRef(null); - const [search, setSearch] = useState(''); + const [search, _setSearch] = useState(''); const chatUserNames = knownChatUserDisplayNames ?.filter(c => c.toLowerCase().startsWith(search.toLowerCase())) diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsx index e095ad281..5bb6e5eaa 100644 --- a/web/components/ui/Content/Content.tsx +++ b/web/components/ui/Content/Content.tsx @@ -17,11 +17,7 @@ import { isOnlineSelector, isMobileAtom, serverStatusState, -<<<<<<< HEAD isChatAvailableSelector, -======= - knownChatUserDisplayNamesAtom, ->>>>>>> 490f5dc79 (WIP chat user auto complete) } from '../../stores/ClientConfigStore'; import { ClientConfig } from '../../../interfaces/client-config.model'; @@ -102,11 +98,7 @@ export const Content: FC = () => { const [isMobile, setIsMobile] = useRecoilState(isMobileAtom); const messages = useRecoilValue(chatMessagesAtom); const online = useRecoilValue(isOnlineSelector); -<<<<<<< HEAD const isChatAvailable = useRecoilValue(isChatAvailableSelector); -======= - const knownChatUserDisplayNames = useRecoilValue(knownChatUserDisplayNamesAtom); ->>>>>>> 490f5dc79 (WIP chat user auto complete) const { viewerCount, lastConnectTime, lastDisconnectTime, streamTitle } = useRecoilValue(serverStatusState); @@ -276,12 +268,7 @@ export const Content: FC = () => { extraPageContent={extraPageContent} setShowFollowModal={setShowFollowModal} supportFediverseFeatures={supportFediverseFeatures} -<<<<<<< HEAD online={online} -======= - chatEnabled={isChatAvailable} - knownChatUserDisplayNames={knownChatUserDisplayNames} ->>>>>>> 490f5dc79 (WIP chat user auto complete) /> ) : (