refactor: update code to use centralized Ant Design imports
- Replaced direct import of '@ant-design/icons' with centralized import from '@/shared/antd-imports'
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Timeline, Typography, Flex, ConfigProvider, Tag, Tooltip, Skeleton } from '@/shared/antd-imports';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ArrowRightOutlined } from '@ant-design/icons';
|
||||
import { ArrowRightOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import {
|
||||
IActivityLog,
|
||||
|
||||
@@ -3,8 +3,6 @@ import AttachmentsPreview from './attachments-preview';
|
||||
import './attachments-preview.css';
|
||||
import type { RcFile, UploadProps } from 'antd/es/upload';
|
||||
import { TFunction } from 'i18next';
|
||||
import { ReloadOutlined } from '@ant-design/icons';
|
||||
import { message } from '@/shared/antd-imports';
|
||||
import AttachmentsUpload from './attachments-upload';
|
||||
|
||||
interface AttachmentsGridProps {
|
||||
|
||||
@@ -6,8 +6,7 @@ import {
|
||||
DownloadOutlined,
|
||||
DeleteOutlined,
|
||||
QuestionCircleOutlined,
|
||||
LoadingOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { attachmentsApiService } from '@/api/attachments/attachments.api.service';
|
||||
import { IconsMap } from '@/shared/constants';
|
||||
import './attachments-preview.css';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LoadingOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { LoadingOutlined, PlusOutlined } from '@/shared/antd-imports';
|
||||
import React, { useRef, useState } from 'react';
|
||||
import { TFunction } from 'i18next';
|
||||
import './attachments-upload.css';
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Skeleton, Avatar, Tooltip, Popconfirm } from '@/shared/antd-imports';
|
||||
import { Comment } from '@ant-design/compatible';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { LikeOutlined, LikeTwoTone } from '@ant-design/icons';
|
||||
import { LikeOutlined, LikeTwoTone } from '@/shared/antd-imports';
|
||||
import { ITaskCommentViewModel } from '@/types/tasks/task-comments.types';
|
||||
import taskCommentsApiService from '@/api/tasks/task-comments.api.service';
|
||||
import { useAuthService } from '@/hooks/useAuth';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
Typography,
|
||||
} from '@/shared/antd-imports';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { DeleteOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
||||
import { DeleteOutlined, ExclamationCircleFilled } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { updateTaskCounts } from '@/features/task-management/task-management.slice';
|
||||
|
||||
@@ -11,7 +11,7 @@ import Button from 'antd/es/button';
|
||||
import { useMemo, useRef, useState } from 'react';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import SingleAvatar from '@/components/common/single-avatar/single-avatar';
|
||||
import { CheckboxChangeEvent } from 'antd/es/checkbox';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ALPHA_CHANNEL } from '@/shared/constants';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
import { ITaskPriority } from '@/types/tasks/taskPriority.types';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@ant-design/icons';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@/shared/antd-imports';
|
||||
import { ITaskViewModel } from '@/types/tasks/task.types';
|
||||
import { useAuthService } from '@/hooks/useAuth';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Form, InputNumber, Tooltip, Modal } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||
import { QuestionCircleOutlined } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { ITaskViewModel } from '@/types/tasks/task.types';
|
||||
import Flex from 'antd/lib/flex';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
Row,
|
||||
Col,
|
||||
} from '@/shared/antd-imports';
|
||||
import { SettingOutlined } from '@ant-design/icons';
|
||||
import { SettingOutlined } from '@/shared/antd-imports';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
import {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Button, Flex, Form, Mentions, Space, Tooltip, Typography, message } from '@/shared/antd-imports';
|
||||
import { useCallback, useEffect, useRef, useState, useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { PaperClipOutlined, DeleteOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { PaperClipOutlined, DeleteOutlined, PlusOutlined } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { colors } from '@/styles/colors';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import {
|
||||
Button,
|
||||
Card,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Button, Flex, Input, Popconfirm, Progress, Table, Tag, Tooltip } from '@/shared/antd-imports';
|
||||
import { useState, useMemo, useEffect } from 'react';
|
||||
import { DeleteOutlined, EditOutlined, ExclamationCircleFilled } from '@ant-design/icons';
|
||||
import { DeleteOutlined, EditOutlined, ExclamationCircleFilled } from '@/shared/antd-imports';
|
||||
import { nanoid } from '@reduxjs/toolkit';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Button, Collapse, CollapseProps, Flex, Skeleton, Tooltip, Typography, Upload } from '@/shared/antd-imports';
|
||||
import { Button, Collapse, CollapseProps, Flex, Skeleton, Tooltip, Typography } from '@/shared/antd-imports';
|
||||
import React, { useEffect, useState, useRef } from 'react';
|
||||
import { ReloadOutlined } from '@ant-design/icons';
|
||||
import { ReloadOutlined } from '@/shared/antd-imports';
|
||||
import DescriptionEditor from './description-editor';
|
||||
import SubTaskTable from './subtask-table';
|
||||
import DependenciesTable from './dependencies-table';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DownloadOutlined, PlusOutlined } from '@ant-design/icons';
|
||||
import { DownloadOutlined, PlusOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Divider, Flex, Skeleton, Typography } from '@/shared/antd-imports';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DownloadOutlined, PlayCircleFilled, PlusOutlined } from '@ant-design/icons';
|
||||
import { DownloadOutlined } from '@/shared/antd-imports';
|
||||
import { Button, Divider, Flex, Skeleton, Typography } from '@/shared/antd-imports';
|
||||
import { useEffect, useState, useCallback } from 'react';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { Button, DatePicker, Form, Input, TimePicker, Flex } from '@/shared/antd-imports';
|
||||
import { ClockCircleOutlined } from '@ant-design/icons';
|
||||
import { ClockCircleOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Button, Dropdown, Flex, Input, InputRef, MenuProps, Tooltip } from '@/shared/antd-imports';
|
||||
import React, { ChangeEvent, useEffect, useRef, useState } from 'react';
|
||||
import { EllipsisOutlined } from '@ant-design/icons';
|
||||
import { EllipsisOutlined } from '@/shared/antd-imports';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
import './task-drawer-header.css';
|
||||
|
||||
@@ -3,7 +3,7 @@ import Drawer from 'antd/es/drawer';
|
||||
import { InputRef } from 'antd/es/input';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { PlusOutlined, CloseOutlined, ArrowLeftOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, CloseOutlined, ArrowLeftOutlined } from '@/shared/antd-imports';
|
||||
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Breadcrumb, Button, Typography, Tooltip } from '@/shared/antd-imports';
|
||||
import { HomeOutlined } from '@ant-design/icons';
|
||||
import { HomeOutlined } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { fetchTask, setSelectedTaskId } from '@/features/task-drawer/task-drawer.slice';
|
||||
|
||||
Reference in New Issue
Block a user