refactor(icons): 迁移公共模块图标到 lucide-react

- constants/importanceLevels.js: 重要性等级图标
- constants/notificationTypes.js: 通知类型图标
- contexts/NotificationContext.js: 通知上下文图标
- layouts/components/BackToTopButton.js: 返回顶部按钮
- utils/priceFormatters.js: 价格格式化图标
- variables/general.js: 通用变量图标

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-25 12:25:54 +08:00
parent 2207a680b5
commit cab01c2cbc
6 changed files with 71 additions and 81 deletions

View File

@@ -7,8 +7,8 @@
*/
import React, { createContext, useContext, useState, useEffect, useCallback, useRef } from 'react';
import { useToast, Box, HStack, Text, Button, CloseButton, VStack, Icon } from '@chakra-ui/react';
import { BellIcon } from '@chakra-ui/icons';
import { useToast, Box, HStack, Text, Button, CloseButton, VStack } from '@chakra-ui/react';
import { Bell } from 'lucide-react';
import { useSelector } from 'react-redux';
import { selectIsMobile } from '@/store/slices/deviceSlice';
import { logger } from '../utils/logger';
@@ -282,7 +282,7 @@ export const NotificationProvider = ({ children }) => {
<VStack spacing={3} align="stretch">
{icon && (
<HStack spacing={2}>
<Icon as={BellIcon} boxSize={5} />
<Bell size={20} />
<Text fontWeight="bold" fontSize="md">
{title}
</Text>
@@ -592,7 +592,7 @@ export const NotificationProvider = ({ children }) => {
>
<VStack spacing={3} align="stretch">
<HStack spacing={2}>
<Icon as={BellIcon} boxSize={5} />
<Bell size={20} />
<Text fontWeight="bold" fontSize="md">
浏览器通知已被拒绝
</Text>