Lazy load every instance of using ant icons. Closes #2583

This commit is contained in:
Gabe Kangas
2023-01-15 22:31:36 -08:00
parent 3986fcd032
commit 6fbd6cbbcf
43 changed files with 537 additions and 91 deletions

View File

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