Lazy load tooltip

This commit is contained in:
Gabe Kangas
2023-01-09 16:09:13 -08:00
parent bd3c81c353
commit 29882f1291
7 changed files with 46 additions and 32 deletions

View File

@@ -1,21 +1,10 @@
import React, { useState, useEffect } from 'react';
import {
Table,
Tag,
Space,
Button,
Modal,
Checkbox,
Input,
Typography,
Tooltip,
Row,
Col,
} from 'antd';
import { Table, Tag, Space, Button, Modal, Checkbox, Input, Typography, Row, Col } from 'antd';
import { DeleteOutlined } from '@ant-design/icons';
import format from 'date-fns/format';
import dynamic from 'next/dynamic';
import {
fetchData,
ACCESS_TOKENS,
@@ -25,6 +14,10 @@ import {
const { Title, Paragraph } = Typography;
// Lazy loaded components
const Tooltip = dynamic(() => import('antd').then(mod => mod.Tooltip));
const availableScopes = {
CAN_SEND_SYSTEM_MESSAGES: {
name: 'System messages',