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 { 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 {

View File

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

View File

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

View File

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