fix: display an icon even if the event action is not standard

This commit is contained in:
Maël Gangloff
2024-12-19 13:48:26 +01:00
parent 1b3e5c5ef8
commit 7c606e2697
4 changed files with 8 additions and 7 deletions

View File

@@ -17,8 +17,6 @@ export function EventTimeline({events}: { events: Event[] }) {
<Timeline
mode={sm ? "left" : "right"}
items={events.map(e => {
const sameEvents = events.filter(se => se.action === e.action)
const eventName = <Typography.Text style={{color: e.deleted ? 'grey' : 'default'}}>
{e.action in rdapEventNameTranslated ? rdapEventNameTranslated[e.action as keyof typeof rdapEventNameTranslated] : e.action}
</Typography.Text>