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:
chamikaJ
2025-07-23 11:05:39 +05:30
parent 80f5febb51
commit edf81dbe57
410 changed files with 475 additions and 456 deletions

View File

@@ -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';

View File

@@ -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';

View File

@@ -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';

View File

@@ -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 }) => {

View File

@@ -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';

View File

@@ -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';

View File

@@ -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';

View File

@@ -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';

View File

@@ -1,4 +1,4 @@
import { TimePicker, TimePickerProps } from 'antd';
import { TimePicker, TimePickerProps } from '@/shared/antd-imports';
type TaskRowDueTimeProps = {
dueTime: string;

View File

@@ -1,4 +1,4 @@
import { Typography } from 'antd';
import { Typography } from '@/shared/antd-imports';
const TaskRowDescription = ({ description }: { description: string }) => {
return (

View File

@@ -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,

View File

@@ -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';

View File

@@ -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';