refactor(icons): 迁移其他 views 目录图标到 lucide-react
- views/Center, views/Community, views/DataBrowser 等 - views/EventDetail, views/LimitAnalyse, views/StockOverview - views/TradingSimulation, views/Pages, views/Authentication - views/Profile, views/Settings - 处理 Tag/TagIcon 命名冲突 - 涉及 52 个组件文件 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@ import {
|
||||
ModalCloseButton,
|
||||
useDisclosure
|
||||
} from '@chakra-ui/react';
|
||||
import { EditIcon, CheckIcon, CloseIcon, AddIcon } from '@chakra-ui/icons';
|
||||
import { Pencil, Check, X, Plus } from 'lucide-react';
|
||||
import { useAuth } from '../../contexts/AuthContext';
|
||||
import { logger } from '../../utils/logger';
|
||||
import { useProfileEvents } from '../../hooks/useProfileEvents';
|
||||
@@ -189,7 +189,7 @@ export default function ProfilePage() {
|
||||
<Heading size="lg" color="gray.800">个人资料</Heading>
|
||||
{!isEditing ? (
|
||||
<Button
|
||||
leftIcon={<EditIcon />}
|
||||
leftIcon={<Pencil size={16} />}
|
||||
colorScheme="blue"
|
||||
onClick={() => setIsEditing(true)}
|
||||
>
|
||||
@@ -198,7 +198,7 @@ export default function ProfilePage() {
|
||||
) : (
|
||||
<HStack>
|
||||
<Button
|
||||
leftIcon={<CheckIcon />}
|
||||
leftIcon={<Check size={16} />}
|
||||
colorScheme="green"
|
||||
onClick={handleSaveProfile}
|
||||
isLoading={isLoading}
|
||||
@@ -206,7 +206,7 @@ export default function ProfilePage() {
|
||||
保存
|
||||
</Button>
|
||||
<Button
|
||||
leftIcon={<CloseIcon />}
|
||||
leftIcon={<X size={16} />}
|
||||
variant="outline"
|
||||
colorScheme="gray"
|
||||
color="gray.300"
|
||||
@@ -496,7 +496,7 @@ export default function ProfilePage() {
|
||||
/>
|
||||
<IconButton
|
||||
size="sm"
|
||||
icon={<AddIcon />}
|
||||
icon={<Plus size={16} />}
|
||||
onClick={addMarketTag}
|
||||
/>
|
||||
</HStack>
|
||||
|
||||
Reference in New Issue
Block a user