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 { Drawer, Empty, Segmented, Typography, Spin, Button, Flex } from 'antd';
|
||||
import { Drawer, Empty, Segmented, Typography, Spin, Button, Flex } from '@/shared/antd-imports';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BellOutlined } from '@ant-design/icons';
|
||||
import { Badge, Button, Tooltip } from 'antd';
|
||||
import { Badge, Button, Tooltip } from '@/shared/antd-imports';
|
||||
import { toggleDrawer } from '@features/navbar/notificationSlice';
|
||||
import { useAppDispatch } from '@/hooks/useAppDispatch';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
|
||||
import { BankOutlined } from '@ant-design/icons';
|
||||
import { Button, Tag, Typography, theme } from 'antd';
|
||||
import { Button, Tag, Typography, theme } from '@/shared/antd-imports';
|
||||
import DOMPurify from 'dompurify';
|
||||
import React, { useState } from 'react';
|
||||
import { fromNow } from '@/utils/dateUtils';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Button, Typography, Tag } from 'antd';
|
||||
import { Button, Typography, Tag } from '@/shared/antd-imports';
|
||||
import { BankOutlined } from '@ant-design/icons';
|
||||
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { notification } from 'antd';
|
||||
import { notification } from '@/shared/antd-imports';
|
||||
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
|
||||
import { teamsApiService } from '@/api/teams/teams.api.service';
|
||||
import { toQueryString } from '@/utils/toQueryString';
|
||||
|
||||
Reference in New Issue
Block a user