Lazy load every instance of using ant icons. Closes #2583
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { Button } from 'antd';
|
||||
import { BellFilled } from '@ant-design/icons';
|
||||
import { FC } from 'react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import styles from './ActionButton/ActionButton.module.scss';
|
||||
|
||||
// Lazy loaded components
|
||||
|
||||
const BellFilled = dynamic(() => import('@ant-design/icons/BellFilled'), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export type NotifyButtonProps = {
|
||||
text?: string;
|
||||
onClick?: () => void;
|
||||
|
||||
Reference in New Issue
Block a user