refactor: update code to use centralized Ant Design imports

- Replaced direct import of '@ant-design/icons' with centralized import from '@/shared/antd-imports'
This commit is contained in:
chamikaJ
2025-07-23 12:07:48 +05:30
parent edf81dbe57
commit a6863d8280
237 changed files with 319 additions and 274 deletions

View File

@@ -1,4 +1,4 @@
import { BellOutlined } from '@ant-design/icons';
import { BellOutlined } from '@/shared/antd-imports';
import { Badge, Button, Tooltip } from '@/shared/antd-imports';
import { toggleDrawer } from '@features/navbar/notificationSlice';
import { useAppDispatch } from '@/hooks/useAppDispatch';

View File

@@ -1,5 +1,5 @@
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
import { BankOutlined } from '@ant-design/icons';
import { BankOutlined } from '@/shared/antd-imports';
import { Button, Tag, Typography, theme } from '@/shared/antd-imports';
import DOMPurify from 'dompurify';
import React, { useState } from 'react';

View File

@@ -1,5 +1,5 @@
import { Button, Typography, Tag } from '@/shared/antd-imports';
import { BankOutlined } from '@ant-design/icons';
import { BankOutlined } from '@/shared/antd-imports';
import { IWorklenzNotification } from '@/types/notifications/notifications.types';
import { useNavigate } from 'react-router-dom';
import { useAppDispatch } from '@/hooks/useAppDispatch';

View File

@@ -2,7 +2,7 @@ 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';
import { BankOutlined } from '@ant-design/icons';
import { BankOutlined } from '@/shared/antd-imports';
import './push-notification-template.css';
const PushNotificationTemplate = ({