fix(dashboard): 修复 ActivityType 类型不兼容错误
将 RecentActivity 组件的 ActivityItem 接口替换为 使用统一的 DashboardActivity 类型,确保类型一致性。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
bd5250c7a7
commit
9d693b743b
|
|
@ -2,19 +2,11 @@
|
|||
|
||||
import { FC } from 'react';
|
||||
import { Card } from '@/components/common';
|
||||
import type { DashboardActivity } from '@/types';
|
||||
import styles from './RecentActivity.module.scss';
|
||||
|
||||
interface ActivityItem {
|
||||
id: string;
|
||||
type: 'user_register' | 'company_activity' | 'system_update' | 'report_generated';
|
||||
icon: string;
|
||||
title: string;
|
||||
description: string;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
export interface RecentActivityProps {
|
||||
activities: ActivityItem[];
|
||||
activities: DashboardActivity[];
|
||||
}
|
||||
|
||||
export const RecentActivity: FC<RecentActivityProps> = ({ activities }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue