Lazy load every instance of using ant icons. Closes #2583
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { Popover } from 'antd';
|
||||
import { CloseOutlined } from '@ant-design/icons';
|
||||
import React, { useState, useEffect, FC } from 'react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import styles from './NotifyReminderPopup.module.scss';
|
||||
|
||||
// Lazy loaded components
|
||||
|
||||
const CloseOutlined = dynamic(() => import('@ant-design/icons/CloseOutlined'), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export type NotifyReminderPopupProps = {
|
||||
open: boolean;
|
||||
children: React.ReactNode;
|
||||
|
||||
Reference in New Issue
Block a user