refactor: update Ant Design imports to centralized path
- Replaced direct imports from 'antd' with centralized imports from '@/shared/antd-imports' to align with new import rules and improve maintainability.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Tooltip } from 'antd';
|
||||
import { Tooltip } from '@/shared/antd-imports';
|
||||
|
||||
interface GroupProgressBarProps {
|
||||
todoProgress: number;
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
PencilIcon,
|
||||
ArrowPathIcon,
|
||||
} from '@heroicons/react/24/outline';
|
||||
import { Checkbox, Dropdown, Menu, Input, Modal, Badge, Flex } from 'antd';
|
||||
import { Checkbox, Dropdown, Menu, Input, Modal, Badge, Flex } from '@/shared/antd-imports';
|
||||
import GroupProgressBar from './GroupProgressBar';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { getContrastColor } from '@/utils/colorUtils';
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { Skeleton } from 'antd';
|
||||
import { Skeleton } from '@/shared/antd-imports';
|
||||
import { HolderOutlined } from '@ant-design/icons';
|
||||
|
||||
// Redux hooks and selectors
|
||||
|
||||
@@ -5,7 +5,7 @@ import { selectTaskById, createSubtask, selectSubtaskLoading } from '@/features/
|
||||
import TaskRow from './TaskRow';
|
||||
import SubtaskLoadingSkeleton from './SubtaskLoadingSkeleton';
|
||||
import { Task } from '@/types/task-management.types';
|
||||
import { Input, Button } from 'antd';
|
||||
import { Input, Button } from '@/shared/antd-imports';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useState, useCallback, memo, useRef, useEffect } from 'react';
|
||||
import { Input } from 'antd';
|
||||
import { Input } from '@/shared/antd-imports';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useSocket } from '@/socket/socketContext';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useState, useCallback, useMemo, memo, useEffect } from 'react';
|
||||
import { Button, Tooltip, Flex, Dropdown, DatePicker, Input } from 'antd';
|
||||
import { Button, Tooltip, Flex, Dropdown, DatePicker, Input } from '@/shared/antd-imports';
|
||||
import { PlusOutlined, SettingOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { memo, useCallback, useState } from 'react';
|
||||
import { DatePicker, Tooltip } from 'antd';
|
||||
import { DatePicker, Tooltip } from '@/shared/antd-imports';
|
||||
import { CloseOutlined } from '@ant-design/icons';
|
||||
import { dayjs, taskManagementAntdConfig } from '@/shared/antd-imports';
|
||||
import { Task } from '@/types/task-management.types';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Skeleton } from 'antd';
|
||||
import { Skeleton } from '@/shared/antd-imports';
|
||||
import ImprovedTaskFilters from '@/components/task-management/improved-task-filters';
|
||||
|
||||
interface TaskListSkeletonProps {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { memo, useCallback, useState, useRef } from 'react';
|
||||
import { CheckCircleOutlined, HolderOutlined, CloseOutlined, DownOutlined, RightOutlined, DoubleRightOutlined, ArrowsAltOutlined, CommentOutlined, EyeOutlined, PaperClipOutlined, MinusCircleOutlined, RetweetOutlined } from '@ant-design/icons';
|
||||
import { Checkbox, DatePicker, Tooltip, Input } from 'antd';
|
||||
import type { InputRef } from 'antd';
|
||||
import { Checkbox, DatePicker, Tooltip, Input } from '@/shared/antd-imports';
|
||||
import type { InputRef } from '@/shared/antd-imports';
|
||||
import { dayjs, taskManagementAntdConfig } from '@/shared/antd-imports';
|
||||
import { Task } from '@/types/task-management.types';
|
||||
import { InlineMember } from '@/types/teamMembers/inlineMember.types';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { memo, useCallback, useState, useRef, useEffect } from 'react';
|
||||
import { RightOutlined, DoubleRightOutlined, ArrowsAltOutlined, CommentOutlined, EyeOutlined, PaperClipOutlined, MinusCircleOutlined, RetweetOutlined } from '@ant-design/icons';
|
||||
import { Input, Tooltip } from 'antd';
|
||||
import type { InputRef } from 'antd';
|
||||
import { Input, Tooltip } from '@/shared/antd-imports';
|
||||
import type { InputRef } from '@/shared/antd-imports';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { Task } from '@/types/task-management.types';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
Reference in New Issue
Block a user