Lazy load every instance of using ant icons. Closes #2583
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { FC } from 'react';
|
||||
import { TeamOutlined } from '@ant-design/icons';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { ChatUserBadge } from '../ChatUserBadge/ChatUserBadge';
|
||||
import styles from './ChatJoinMessage.module.scss';
|
||||
|
||||
// Lazy loaded components
|
||||
|
||||
const TeamOutlined = dynamic(() => import('@ant-design/icons/TeamOutlined'), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export type ChatJoinMessageProps = {
|
||||
isAuthorModerator: boolean;
|
||||
userColor: number;
|
||||
|
||||
Reference in New Issue
Block a user