refactor: 重构项目结构并优化代码
- 删除无用的文件和错误日志 - 创建统一的 imports 模块集中管理依赖 - 重构组件使用新的 imports 方式 - 修复文档路径大小写问题 - 优化类型定义和接口导出 - 更新依赖版本 - 改进错误处理和API配置 - 统一组件导出方式
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import {
|
||||
useState,
|
||||
useEffect,
|
||||
Card,
|
||||
Tabs,
|
||||
Table,
|
||||
@@ -20,9 +21,7 @@ import {
|
||||
Empty,
|
||||
Typography,
|
||||
Space,
|
||||
Divider
|
||||
} from 'antd';
|
||||
import {
|
||||
Divider,
|
||||
ShopOutlined,
|
||||
ThunderboltOutlined,
|
||||
FireOutlined,
|
||||
@@ -38,14 +37,16 @@ import {
|
||||
CheckCircleOutlined,
|
||||
CloseCircleOutlined,
|
||||
BulbOutlined,
|
||||
TagOutlined
|
||||
} from '@ant-design/icons';
|
||||
TagOutlined,
|
||||
Option,
|
||||
Search,
|
||||
Title,
|
||||
Text,
|
||||
Paragraph,
|
||||
FC,
|
||||
} from '@/imports';
|
||||
import type { ColumnsType } from 'antd/es/table';
|
||||
|
||||
const { Option } = Select;
|
||||
const { Search } = Input;
|
||||
const { Title, Text, Paragraph } = Typography;
|
||||
|
||||
interface Strategy {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -105,7 +106,7 @@ const riskColors: Record<string, string> = {
|
||||
HIGH: 'error'
|
||||
};
|
||||
|
||||
const StrategyMarketplacePage: React.FC = () => {
|
||||
const StrategyMarketplacePage: FC = () => {
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [activeTab, setActiveTab] = useState('marketplace');
|
||||
const [categoryFilter, setCategoryFilter] = useState<string>('all');
|
||||
|
||||
Reference in New Issue
Block a user