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

@@ -1,4 +1,4 @@
import { Button, Drawer, Dropdown } from 'antd';
import { Button, Drawer, Dropdown } from '@/shared/antd-imports';
import { useEffect, useState } from 'react';
import { useAppDispatch } from '@/hooks/useAppDispatch';
import { DownOutlined, EditOutlined, ImportOutlined } from '@ant-design/icons';

View File

@@ -1,4 +1,4 @@
import { ColorPicker, Form, FormInstance, Input } from 'antd';
import { ColorPicker, Form, FormInstance, Input } from '@/shared/antd-imports';
import { useTranslation } from 'react-i18next';
import { IProjectViewModel } from '@/types/project/projectViewModel.types';

View File

@@ -10,7 +10,7 @@ import {
InputRef,
Select,
Typography,
} from 'antd';
} from '@/shared/antd-imports';
import { PlusOutlined } from '@ant-design/icons';
import { useAppDispatch } from '@/hooks/useAppDispatch';

View File

@@ -3,7 +3,7 @@ import { useAppDispatch } from '@/hooks/useAppDispatch';
import { IClientsViewModel } from '@/types/client.types';
import { IProjectViewModel } from '@/types/project/projectViewModel.types';
import { QuestionCircleOutlined } from '@ant-design/icons';
import { AutoComplete, Flex, Form, FormInstance, Spin, Tooltip, Typography } from 'antd';
import { AutoComplete, Flex, Form, FormInstance, Spin, Tooltip, Typography } from '@/shared/antd-imports';
import { TFunction } from 'i18next';
import { useState } from 'react';

View File

@@ -17,7 +17,7 @@ import {
Switch,
Tooltip,
Typography,
} from 'antd';
} from '@/shared/antd-imports';
import dayjs from 'dayjs';
import { fetchClients } from '@/features/settings/client/clientSlice';

View File

@@ -1,5 +1,5 @@
import { TFunction } from 'i18next';
import { Badge, Form, FormInstance, Select, Typography } from 'antd';
import { Badge, Form, FormInstance, Select, Typography } from '@/shared/antd-imports';
import { IProjectHealth } from '@/types/project/projectHealth.types';

View File

@@ -1,4 +1,4 @@
import { Form, FormInstance, Select, Typography } from 'antd';
import { Form, FormInstance, Select, Typography } from '@/shared/antd-imports';
import { TFunction } from 'i18next';
import { IProjectStatus } from '@/types/project/projectStatus.types';

View File

@@ -4,7 +4,7 @@ import { useAppDispatch } from '@/hooks/useAppDispatch';
import { useAppSelector } from '@/hooks/useAppSelector';
import { ITeamMemberViewModel } from '@/types/teamMembers/teamMembersGetResponse.types';
import { CloseCircleFilled, PlusCircleOutlined } from '@ant-design/icons';
import { Button, Dropdown, Flex, Input, InputRef, theme, Typography } from 'antd';
import { Button, Dropdown, Flex, Input, InputRef, theme, Typography } from '@/shared/antd-imports';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import './project-manager-dropdown.css';

View File

@@ -1,5 +1,5 @@
import { ReactNode } from 'react';
import { Card, Flex, Skeleton, Tooltip, Typography } from 'antd';
import { Card, Flex, Skeleton, Tooltip, Typography } from '@/shared/antd-imports';
import { ExclamationCircleOutlined } from '@ant-design/icons';
import { colors } from '@/styles/colors';