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 { AutoComplete, Button, Drawer, Flex, Form, message, Select, Spin, Typography } from 'antd';
|
||||
import { AutoComplete, Button, Drawer, Flex, Form, message, Select, Spin, Typography } from '@/shared/antd-imports';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { AvatarNamesMap } from '@/shared/constants';
|
||||
import { Avatar, Flex, Space } from 'antd';
|
||||
import { Avatar, Flex, Space } from '@/shared/antd-imports';
|
||||
|
||||
interface SingleAvatarProps {
|
||||
avatarUrl?: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { MenuProps } from 'antd';
|
||||
import type { MenuProps } from '@/shared/antd-imports';
|
||||
import {
|
||||
Empty,
|
||||
List,
|
||||
@@ -10,8 +10,7 @@ import {
|
||||
Image,
|
||||
Input,
|
||||
Flex,
|
||||
Button,
|
||||
} from 'antd';
|
||||
} from '@/shared/antd-imports';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Tooltip, TooltipProps } from 'antd';
|
||||
import { Tooltip, TooltipProps } from '@/shared/antd-imports';
|
||||
|
||||
interface TooltipWrapperProps extends Omit<TooltipProps, 'children'> {
|
||||
children: React.ReactElement;
|
||||
|
||||
Reference in New Issue
Block a user