mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 21:08:36 +08:00
Lazy load every instance of using ant icons. Closes #2583
This commit is contained in:
@ -1,14 +1,20 @@
|
||||
import { Input, Table } from 'antd';
|
||||
import { FilterDropdownProps, SortOrder } from 'antd/lib/table/interface';
|
||||
import { ColumnsType } from 'antd/es/table';
|
||||
import { SearchOutlined } from '@ant-design/icons';
|
||||
import { formatDistanceToNow } from 'date-fns';
|
||||
import { FC } from 'react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { Client } from '../../types/chat';
|
||||
import { UserPopover } from './UserPopover';
|
||||
import { BanUserButton } from './BanUserButton';
|
||||
import { formatUAstring } from '../../utils/format';
|
||||
|
||||
// Lazy loaded components
|
||||
|
||||
const SearchOutlined = dynamic(() => import('@ant-design/icons/SearchOutlined'), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export type ClientTableProps = {
|
||||
data: Client[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user