Support event type filtering.

This commit is contained in:
Mike Cao 2025-07-24 16:09:49 -07:00
parent 45c9ea9c22
commit 2e69e57445
7 changed files with 39 additions and 29 deletions

View file

@ -8,10 +8,6 @@ export interface EventsTableProps extends MetricsTableProps {
export function EventsTable({ onLabelClick, ...props }: EventsTableProps) {
const { formatMessage, labels } = useMessages();
const handleDataLoad = (data: any) => {
props.onDataLoad?.(data);
};
const renderLabel = ({ x: label }) => {
if (onLabelClick) {
return (
@ -30,7 +26,6 @@ export function EventsTable({ onLabelClick, ...props }: EventsTableProps) {
title={formatMessage(labels.events)}
type="event"
metric={formatMessage(labels.actions)}
onDataLoad={handleDataLoad}
renderLabel={renderLabel}
allowDownload={false}
/>