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,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Tooltip } from 'antd';
|
||||
import { Tooltip } from '@/shared/antd-imports';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { toggleScheduleDrawer } from '../../../features/schedule/scheduleSlice';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { fetchDateList, fetchTeamData } from '../../../features/schedule/schedul
|
||||
import { themeWiseColor } from '../../../utils/themeWiseColor';
|
||||
import GranttMembersTable from './grantt-members-table';
|
||||
import { CELL_WIDTH } from '../../../shared/constants';
|
||||
import { Flex, Popover } from 'antd';
|
||||
import { Flex, Popover } from '@/shared/antd-imports';
|
||||
import DayAllocationCell from './day-allocation-cell';
|
||||
import ProjectTimelineBar from './project-timeline-bar';
|
||||
import ProjectTimelineModal from '@/features/schedule/ProjectTimelineModal';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Badge, Button, Flex, Tooltip } from 'antd';
|
||||
import { Badge, Button, Flex, Tooltip } from '@/shared/antd-imports';
|
||||
import React, { useCallback } from 'react';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import CustomAvatar from '../../CustomAvatar';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Flex, Popover, Typography } from 'antd';
|
||||
import { Flex, Popover, Typography } from '@/shared/antd-imports';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import { Flex, Typography } from 'antd';
|
||||
import { Flex, Typography } from '@/shared/antd-imports';
|
||||
import { Member } from '../../../types/schedule/schedule.types';
|
||||
import DayAllocationCell from './day-allocation-cell';
|
||||
import { CELL_WIDTH } from '../../../shared/constants';
|
||||
|
||||
Reference in New Issue
Block a user