Event name declutter

Summary:
The current event label used the event type. The type in itself can have this shape:

`ck:willMountComponent`

The event name is just 'willMountComponent'.

So, extract that piece of data instead.

Reviewed By: aigoncharov

Differential Revision: D43983728

fbshipit-source-id: e232b59cfe3eb0710e56fc9ba7f94b644b07ee74
This commit is contained in:
Lorenzo Blasa
2023-03-13 03:55:03 -07:00
committed by Facebook GitHub Bot
parent 14795f203b
commit c192af7fa0

View File

@@ -111,7 +111,7 @@ export const Inspector: React.FC<Props> = ({nodes, metadata}) => {
time: events.map((e) => { time: events.map((e) => {
return { return {
moment: e.timestamp, moment: e.timestamp,
display: e.type, display: e.type.slice(e.type.lastIndexOf(':') + 1),
color: theme.primaryColor, color: theme.primaryColor,
key: e.timestamp.toString(), key: e.timestamp.toString(),
}; };