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,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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user