Browse Source

Prettified Code!

btrimports
t1enne 3 years ago committed by GitHub Action
parent
commit
c8b5c013ef
  1. 6
      web/components/chat/ChatContainer/ChatContainer.tsx
  2. 12
      web/components/ui/Content/Content.tsx

6
web/components/chat/ChatContainer/ChatContainer.tsx

@ -1,11 +1,7 @@
import { Virtuoso } from 'react-virtuoso'; import { Virtuoso } from 'react-virtuoso';
import { useState, useMemo, useRef, CSSProperties, FC } from 'react'; import { useState, useMemo, useRef, CSSProperties, FC } from 'react';
import { EditFilled } from '@ant-design/icons'; import { EditFilled } from '@ant-design/icons';
import { import { ConnectedClientInfoEvent, MessageType, NameChangeEvent } from '~/interfaces/socket-events';
ConnectedClientInfoEvent,
MessageType,
NameChangeEvent,
} from '~/interfaces/socket-events';
import { ChatMessage } from '~/interfaces/chat-message.model'; import { ChatMessage } from '~/interfaces/chat-message.model';
import { ChatUserMessage } from '~/components/chat/ChatUserMessage/ChatUserMessage'; import { ChatUserMessage } from '~/components/chat/ChatUserMessage/ChatUserMessage';
import { ChatTextField } from '~/components/chat/ChatTextField/ChatTextField'; import { ChatTextField } from '~/components/chat/ChatTextField/ChatTextField';

12
web/components/ui/Content/Content.tsx

@ -42,15 +42,21 @@ const { Content: AntContent } = Layout;
const Modal = dynamic(() => import('../Modal/Modal').then(mod => mod.Modal)); const Modal = dynamic(() => import('../Modal/Modal').then(mod => mod.Modal));
const BrowserNotifyModal = dynamic(() => const BrowserNotifyModal = dynamic(() =>
import('~/components/modals/BrowserNotifyModal/BrowserNotifyModal').then(mod => mod.BrowserNotifyModal), import('~/components/modals/BrowserNotifyModal/BrowserNotifyModal').then(
mod => mod.BrowserNotifyModal,
),
); );
const NotifyReminderPopup = dynamic(() => const NotifyReminderPopup = dynamic(() =>
import('~/components/ui/NotifyReminderPopup/NotifyReminderPopup').then(mod => mod.NotifyReminderPopup), import('~/components/ui/NotifyReminderPopup/NotifyReminderPopup').then(
mod => mod.NotifyReminderPopup,
),
); );
const FollowerCollection = dynamic(() => 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 // We only need to load the chat container here if we're in mobile or narrow

Loading…
Cancel
Save