feat(antd-imports): establish centralized import rules for Ant Design components
- Introduced a new rules file for Ant Design component imports, enforcing the use of centralized imports from `@antd-imports` to enhance tree-shaking, maintainability, and performance. - Updated various components to replace direct imports from 'antd' and '@ant-design/icons' with the centralized import path. - Refactored existing components to utilize memoization and callbacks for improved performance and readability. - Enhanced the billing and configuration components with updated styles and improved user experience.
This commit is contained in:
@@ -50,6 +50,7 @@ import {
|
||||
message,
|
||||
notification,
|
||||
theme,
|
||||
Statistic,
|
||||
} from 'antd';
|
||||
|
||||
// Icons - Import commonly used ones
|
||||
@@ -145,6 +146,7 @@ export {
|
||||
message,
|
||||
notification,
|
||||
theme,
|
||||
Statistic,
|
||||
};
|
||||
|
||||
// TypeScript Types - Import commonly used ones
|
||||
|
||||
Reference in New Issue
Block a user