Fix types, at least

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-08-07 16:23:44 +02:00
parent 0fc8a2993f
commit 7fb07b66be
42 changed files with 204 additions and 269 deletions

View File

@@ -3,7 +3,9 @@ import { useHistory, useParams } from 'react-router-dom';
import { toggleMainWindow } from 'soapbox/actions/chats';
import { useAppDispatch, useSettings } from 'soapbox/hooks';
import { IChat, useChat } from 'soapbox/queries/chats';
import { useChat } from 'soapbox/queries/chats';
import type { Chat } from 'pl-api';
const ChatContext = createContext<any>({
isOpen: false,
@@ -69,7 +71,7 @@ const ChatProvider: React.FC<IChatProvider> = ({ children }) => {
};
interface IChatContext {
chat: IChat | null;
chat: Chat | null;
isOpen: boolean;
isUsingMainChatPage?: boolean;
toggleChatPane(): void;