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:
@@ -18,7 +18,7 @@ import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { toggleProjectMemberDrawer } from '../../../features/projects/singleProject/members/projectMembersSlice';
|
||||
import CustomAvatar from '../../CustomAvatar';
|
||||
import { colors } from '../../../styles/colors';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, UsergroupAddOutlined } from '@/shared/antd-imports';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ITaskAssignee } from '@/types/tasks/task.types';
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
setConvertToSubtaskDrawerOpen,
|
||||
updateTaskStatus,
|
||||
} from '@/features/tasks/tasks.slice';
|
||||
import { RightOutlined } from '@ant-design/icons';
|
||||
import { RightOutlined } from '@/shared/antd-imports';
|
||||
import CustomSearchbar from '@/components/CustomSearchbar';
|
||||
import { ITaskListConfigV2, tasksApiService } from '@/api/tasks/tasks.api.service';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined } from '@/shared/antd-imports';
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useSocket } from '@/socket/socketContext';
|
||||
import { SocketEvents } from '@/shared/socket-events';
|
||||
import { IProjectTask } from '@/types/project/projectTasksViewModel.types';
|
||||
import { ITaskPriority } from '@/types/tasks/taskPriority.types';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@ant-design/icons';
|
||||
import { DoubleLeftOutlined, MinusOutlined, PauseOutlined } from '@/shared/antd-imports';
|
||||
|
||||
type PriorityDropdownProps = {
|
||||
task: IProjectTask;
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
DownOutlined,
|
||||
RightOutlined,
|
||||
ExpandAltOutlined,
|
||||
} from '@ant-design/icons';
|
||||
} from '@/shared/antd-imports';
|
||||
import { colors } from '@/styles/colors';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { setShowTaskDrawer } from '@/features/task-drawer/task-drawer.slice';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import { Divider, Empty, Flex, Popover, Typography } from '@/shared/antd-imports';
|
||||
import { PlayCircleFilled } from '@ant-design/icons';
|
||||
import { PlayCircleFilled } from '@/shared/antd-imports';
|
||||
import { colors } from '@/styles/colors';
|
||||
import CustomAvatar from '@components/CustomAvatar';
|
||||
import { mockTimeLogs } from '@/pages/projects/project-view-1/taskList/taskListTable/taskListTableCells/mockTimeLogs';
|
||||
|
||||
Reference in New Issue
Block a user