Prettified Code!

This commit is contained in:
t1enne 2022-10-08 08:41:42 +00:00 committed by GitHub Action
parent e129392d6d
commit c8b5c013ef
2 changed files with 10 additions and 8 deletions

View file

@ -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';

View file

@ -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