Fixed import and lint-errors

This commit is contained in:
t1enne 2022-05-22 15:05:40 +02:00
parent 018ee135b2
commit b6dd441107
3 changed files with 6 additions and 5 deletions

View file

@ -2,10 +2,10 @@ import { Spin } from 'antd';
import { Virtuoso } from 'react-virtuoso';
import { useRef } from 'react';
import { LoadingOutlined } from '@ant-design/icons';
import { ChatMessage } from '/interfaces/chat-message.model';
import { ChatState } from '/interfaces/application-state';
import { ChatMessage } from '../../../interfaces/chat-message.model';
import { ChatState } from '../../../interfaces/application-state';
import { MessageType } from '../../../interfaces/socket-events';
import ChatUserMessage from '../ChatUserMessage';
import { MessageType } from '/interfaces/socket-events';
import s from './ChatContainer.module.scss';
interface Props {

View file

@ -0,0 +1,2 @@
export { default as ChatContainer } from './ChatContainer';
export { default as ChatTextField } from './ChatTextField/ChatTextField';

View file

@ -1,7 +1,7 @@
import Sider from 'antd/lib/layout/Sider';
import { useRecoilValue } from 'recoil';
import { ChatMessage } from '../../../interfaces/chat-message.model';
import ChatContainer from '/components/chat/ChatContainer';
import { ChatContainer, ChatTextField } from '../../chat';
import s from './Sidebar.module.scss';
import {
chatMessagesAtom,
@ -9,7 +9,6 @@ import {
chatStateAtom,
} from '../../stores/ClientConfigStore';
import { ChatState, ChatVisibilityState } from '../../../interfaces/application-state';
import ChatTextField from '../../chat/ChatTextField/ChatTextField';
export default function Sidebar() {
const messages = useRecoilValue<ChatMessage[]>(chatMessagesAtom);