mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 21:03:19 +03:00
Fixed import and lint-errors
This commit is contained in:
parent
018ee135b2
commit
b6dd441107
3 changed files with 6 additions and 5 deletions
|
@ -2,10 +2,10 @@ import { Spin } from 'antd';
|
||||||
import { Virtuoso } from 'react-virtuoso';
|
import { Virtuoso } from 'react-virtuoso';
|
||||||
import { useRef } from 'react';
|
import { useRef } from 'react';
|
||||||
import { LoadingOutlined } from '@ant-design/icons';
|
import { LoadingOutlined } from '@ant-design/icons';
|
||||||
import { ChatMessage } from '/interfaces/chat-message.model';
|
import { ChatMessage } from '../../../interfaces/chat-message.model';
|
||||||
import { ChatState } from '/interfaces/application-state';
|
import { ChatState } from '../../../interfaces/application-state';
|
||||||
|
import { MessageType } from '../../../interfaces/socket-events';
|
||||||
import ChatUserMessage from '../ChatUserMessage';
|
import ChatUserMessage from '../ChatUserMessage';
|
||||||
import { MessageType } from '/interfaces/socket-events';
|
|
||||||
import s from './ChatContainer.module.scss';
|
import s from './ChatContainer.module.scss';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
2
web/components/chat/index.ts
Normal file
2
web/components/chat/index.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export { default as ChatContainer } from './ChatContainer';
|
||||||
|
export { default as ChatTextField } from './ChatTextField/ChatTextField';
|
|
@ -1,7 +1,7 @@
|
||||||
import Sider from 'antd/lib/layout/Sider';
|
import Sider from 'antd/lib/layout/Sider';
|
||||||
import { useRecoilValue } from 'recoil';
|
import { useRecoilValue } from 'recoil';
|
||||||
import { ChatMessage } from '../../../interfaces/chat-message.model';
|
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 s from './Sidebar.module.scss';
|
||||||
import {
|
import {
|
||||||
chatMessagesAtom,
|
chatMessagesAtom,
|
||||||
|
@ -9,7 +9,6 @@ import {
|
||||||
chatStateAtom,
|
chatStateAtom,
|
||||||
} from '../../stores/ClientConfigStore';
|
} from '../../stores/ClientConfigStore';
|
||||||
import { ChatState, ChatVisibilityState } from '../../../interfaces/application-state';
|
import { ChatState, ChatVisibilityState } from '../../../interfaces/application-state';
|
||||||
import ChatTextField from '../../chat/ChatTextField/ChatTextField';
|
|
||||||
|
|
||||||
export default function Sidebar() {
|
export default function Sidebar() {
|
||||||
const messages = useRecoilValue<ChatMessage[]>(chatMessagesAtom);
|
const messages = useRecoilValue<ChatMessage[]>(chatMessagesAtom);
|
||||||
|
|
Loading…
Reference in a new issue