From 70db93272d49d1e03fac6f5ad60797b8dfcaab90 Mon Sep 17 00:00:00 2001 From: Anton Arnautov Date: Tue, 29 Oct 2024 12:29:42 +0100 Subject: [PATCH] chore: remove baseUrl from tsconfig, fix imports --- src/components/ChatAutoComplete/ChatAutoComplete.tsx | 3 +-- src/components/Threads/hooks/useThreadManagerState.ts | 3 ++- tsconfig.json | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/ChatAutoComplete/ChatAutoComplete.tsx b/src/components/ChatAutoComplete/ChatAutoComplete.tsx index 3a5b11180..faba2d4ae 100644 --- a/src/components/ChatAutoComplete/ChatAutoComplete.tsx +++ b/src/components/ChatAutoComplete/ChatAutoComplete.tsx @@ -10,9 +10,8 @@ import { useComponentContext } from '../../context/ComponentContext'; import type { CommandResponse, UserResponse } from 'stream-chat'; import type { TriggerSettings } from '../MessageInput/DefaultTriggerProvider'; - import type { CustomTrigger, DefaultStreamChatGenerics, UnknownType } from '../../types/types'; -import { EmojiSearchIndex } from 'components/MessageInput'; +import type { EmojiSearchIndex } from '../MessageInput'; type ObjectUnion = T[keyof T]; diff --git a/src/components/Threads/hooks/useThreadManagerState.ts b/src/components/Threads/hooks/useThreadManagerState.ts index 18ac8c7fd..7001320fb 100644 --- a/src/components/Threads/hooks/useThreadManagerState.ts +++ b/src/components/Threads/hooks/useThreadManagerState.ts @@ -1,5 +1,6 @@ -import { useChatContext } from 'context'; import { ThreadManagerState } from 'stream-chat'; + +import { useChatContext } from '../../../context'; import { useStateStore } from '../../../store'; export const useThreadManagerState = ( diff --git a/tsconfig.json b/tsconfig.json index 2b616ea8d..b14a46bf2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "baseUrl": "./src", "lib": ["ES2020", "DOM"], "target": "ES2020", "jsx": "react",