diff --git a/packages/console/src/components/AuditLogTable/components/EventName/index.tsx b/packages/console/src/components/AuditLogTable/components/EventName/index.tsx index c7284ccba..896690c74 100644 --- a/packages/console/src/components/AuditLogTable/components/EventName/index.tsx +++ b/packages/console/src/components/AuditLogTable/components/EventName/index.tsx @@ -8,13 +8,13 @@ import { logEventTitle } from '@/consts/logs'; import * as styles from './index.module.scss'; type Props = { - type: string; + eventKey: string; isSuccess: boolean; to?: string; }; -const EventName = ({ type, isSuccess, to }: Props) => { - const title = logEventTitle[type] ?? type; +const EventName = ({ eventKey, isSuccess, to }: Props) => { + const title = logEventTitle[eventKey] ?? eventKey; return (