feat: 去掉市场复盘相关代码
This commit is contained in:
@@ -17,7 +17,6 @@ import {
|
|||||||
// 导入组件
|
// 导入组件
|
||||||
import EventTimelineCard from './components/EventTimelineCard';
|
import EventTimelineCard from './components/EventTimelineCard';
|
||||||
import DynamicNewsCard from './components/DynamicNewsCard';
|
import DynamicNewsCard from './components/DynamicNewsCard';
|
||||||
import MarketReviewCard from './components/MarketReviewCard';
|
|
||||||
import HotEventsSection from './components/HotEventsSection';
|
import HotEventsSection from './components/HotEventsSection';
|
||||||
import EventModals from './components/EventModals';
|
import EventModals from './components/EventModals';
|
||||||
|
|
||||||
@@ -26,13 +25,6 @@ import { useEventData } from './hooks/useEventData';
|
|||||||
import { useEventFilters } from './hooks/useEventFilters';
|
import { useEventFilters } from './hooks/useEventFilters';
|
||||||
import { useCommunityEvents } from './hooks/useCommunityEvents';
|
import { useCommunityEvents } from './hooks/useCommunityEvents';
|
||||||
|
|
||||||
// 导入时间工具函数
|
|
||||||
import {
|
|
||||||
getCurrentTradingTimeRange,
|
|
||||||
getMarketReviewTimeRange,
|
|
||||||
filterEventsByTimeRange
|
|
||||||
} from '../../utils/tradingTimeUtils';
|
|
||||||
|
|
||||||
import { logger } from '../../utils/logger';
|
import { logger } from '../../utils/logger';
|
||||||
import { useNotification } from '../../contexts/NotificationContext';
|
import { useNotification } from '../../contexts/NotificationContext';
|
||||||
import { usePostHogTrack } from '../../hooks/usePostHogRedux';
|
import { usePostHogTrack } from '../../hooks/usePostHogRedux';
|
||||||
@@ -82,21 +74,6 @@ const Community = () => {
|
|||||||
|
|
||||||
const { events, pagination, loading, lastUpdateTime } = useEventData(filters);
|
const { events, pagination, loading, lastUpdateTime } = useEventData(filters);
|
||||||
|
|
||||||
// 计算市场复盘的时间范围和过滤后的事件
|
|
||||||
const marketReviewData = useMemo(() => {
|
|
||||||
const timeRange = getMarketReviewTimeRange();
|
|
||||||
const filteredEvents = filterEventsByTimeRange(events, timeRange.startTime, timeRange.endTime);
|
|
||||||
logger.debug('Community', '市场复盘时间范围', {
|
|
||||||
description: timeRange.description,
|
|
||||||
rangeType: timeRange.rangeType,
|
|
||||||
eventCount: filteredEvents.length
|
|
||||||
});
|
|
||||||
return {
|
|
||||||
events: filteredEvents,
|
|
||||||
timeRange
|
|
||||||
};
|
|
||||||
}, [events]);
|
|
||||||
|
|
||||||
// 加载热门关键词和热点事件(动态新闻由 DynamicNewsCard 内部管理)
|
// 加载热门关键词和热点事件(动态新闻由 DynamicNewsCard 内部管理)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(fetchPopularKeywords());
|
dispatch(fetchPopularKeywords());
|
||||||
@@ -203,17 +180,6 @@ const Community = () => {
|
|||||||
onViewDetail={handleViewDetail}
|
onViewDetail={handleViewDetail}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* 市场复盘 - 左右布局 */}
|
|
||||||
{/* <MarketReviewCard
|
|
||||||
mt={6}
|
|
||||||
events={marketReviewData.events}
|
|
||||||
loading={loading}
|
|
||||||
lastUpdateTime={lastUpdateTime}
|
|
||||||
onEventClick={handleEventClick}
|
|
||||||
onViewDetail={handleViewDetail}
|
|
||||||
onToggleFollow={() => {}}
|
|
||||||
/> */}
|
|
||||||
|
|
||||||
{/* 实时事件 - 原纵向列表 */}
|
{/* 实时事件 - 原纵向列表 */}
|
||||||
{/* <EventTimelineCard
|
{/* <EventTimelineCard
|
||||||
ref={eventTimelineRef}
|
ref={eventTimelineRef}
|
||||||
|
|||||||
Reference in New Issue
Block a user