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:
@@ -11,7 +11,7 @@ import {
|
||||
InputRef,
|
||||
List,
|
||||
Typography,
|
||||
} from 'antd';
|
||||
} from '@/shared/antd-imports';
|
||||
import React, { useMemo, useRef, useState } from 'react';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Select, Tag, Tooltip } from 'antd';
|
||||
import { Select, Tag, Tooltip } from '@/shared/antd-imports';
|
||||
import { PhaseColorCodes } from '../../../shared/constants';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ITaskLabel } from '@/types/tasks/taskLabel.types';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Tag, Typography } from 'antd';
|
||||
import { Tag, Typography } from '@/shared/antd-imports';
|
||||
import { colors } from '@/styles/colors';
|
||||
import { ITaskLabel } from '@/types/tasks/taskLabel.types';
|
||||
import { ALPHA_CHANNEL } from '@/shared/constants';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Tag, Tooltip } from 'antd';
|
||||
import { Tag, Tooltip } from '@/shared/antd-imports';
|
||||
import { ITaskLabel } from '@/types/tasks/taskLabel.types';
|
||||
|
||||
const CustomNumberLabel = ({ labelList }: { labelList: ITaskLabel[] | null }) => {
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
InputRef,
|
||||
List,
|
||||
Typography,
|
||||
} from 'antd';
|
||||
} from '@/shared/antd-imports';
|
||||
import React, { useMemo, useRef, useState } from 'react';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { colors } from '@/styles/colors';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Badge, Flex, Select, Typography } from 'antd';
|
||||
import { Badge, Flex, Select, Typography } from '@/shared/antd-imports';
|
||||
import React, { useState } from 'react';
|
||||
// custom css file
|
||||
import './phaseDropdown.css';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Flex, Select, Typography } from 'antd';
|
||||
import { Flex, Select, Typography } from '@/shared/antd-imports';
|
||||
import './priority-dropdown.css';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useState, useEffect, useMemo } from 'react';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Flex, Select } from 'antd';
|
||||
import { Flex, Select } from '@/shared/antd-imports';
|
||||
import './status-dropdown.css';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TimePicker, TimePickerProps } from 'antd';
|
||||
import { TimePicker, TimePickerProps } from '@/shared/antd-imports';
|
||||
|
||||
type TaskRowDueTimeProps = {
|
||||
dueTime: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Typography } from 'antd';
|
||||
import { Typography } from '@/shared/antd-imports';
|
||||
|
||||
const TaskRowDescription = ({ description }: { description: string }) => {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// TaskNameCell.tsx
|
||||
import React, { useCallback } from 'react';
|
||||
import { Flex, Typography, Button } from 'antd';
|
||||
import { Flex, Typography, Button } from '@/shared/antd-imports';
|
||||
import {
|
||||
DoubleRightOutlined,
|
||||
DownOutlined,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Progress, Tooltip } from 'antd';
|
||||
import { Progress, Tooltip } from '@/shared/antd-imports';
|
||||
import './task-row-progress.css';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import { Divider, Empty, Flex, Popover, Typography } from 'antd';
|
||||
import { Divider, Empty, Flex, Popover, Typography } from '@/shared/antd-imports';
|
||||
import { PlayCircleFilled } from '@ant-design/icons';
|
||||
import { colors } from '@/styles/colors';
|
||||
import CustomAvatar from '@components/CustomAvatar';
|
||||
|
||||
Reference in New Issue
Block a user