mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 13:50:06 +03:00
Prettified Code!
This commit is contained in:
parent
e129392d6d
commit
c8b5c013ef
2 changed files with 10 additions and 8 deletions
|
@ -1,11 +1,7 @@
|
|||
import { Virtuoso } from 'react-virtuoso';
|
||||
import { useState, useMemo, useRef, CSSProperties, FC } from 'react';
|
||||
import { EditFilled } from '@ant-design/icons';
|
||||
import {
|
||||
ConnectedClientInfoEvent,
|
||||
MessageType,
|
||||
NameChangeEvent,
|
||||
} from '~/interfaces/socket-events';
|
||||
import { ConnectedClientInfoEvent, MessageType, NameChangeEvent } from '~/interfaces/socket-events';
|
||||
import { ChatMessage } from '~/interfaces/chat-message.model';
|
||||
import { ChatUserMessage } from '~/components/chat/ChatUserMessage/ChatUserMessage';
|
||||
import { ChatTextField } from '~/components/chat/ChatTextField/ChatTextField';
|
||||
|
|
|
@ -42,15 +42,21 @@ const { Content: AntContent } = Layout;
|
|||
const Modal = dynamic(() => import('../Modal/Modal').then(mod => mod.Modal));
|
||||
|
||||
const BrowserNotifyModal = dynamic(() =>
|
||||
import('~/components/modals/BrowserNotifyModal/BrowserNotifyModal').then(mod => mod.BrowserNotifyModal),
|
||||
import('~/components/modals/BrowserNotifyModal/BrowserNotifyModal').then(
|
||||
mod => mod.BrowserNotifyModal,
|
||||
),
|
||||
);
|
||||
|
||||
const NotifyReminderPopup = dynamic(() =>
|
||||
import('~/components/ui/NotifyReminderPopup/NotifyReminderPopup').then(mod => mod.NotifyReminderPopup),
|
||||
import('~/components/ui/NotifyReminderPopup/NotifyReminderPopup').then(
|
||||
mod => mod.NotifyReminderPopup,
|
||||
),
|
||||
);
|
||||
|
||||
const FollowerCollection = dynamic(() =>
|
||||
import('~/components/ui/followers/FollowerCollection/FollowerCollection').then(mod => mod.FollowerCollection),
|
||||
import('~/components/ui/followers/FollowerCollection/FollowerCollection').then(
|
||||
mod => mod.FollowerCollection,
|
||||
),
|
||||
);
|
||||
|
||||
// We only need to load the chat container here if we're in mobile or narrow
|
||||
|
|
Loading…
Reference in a new issue