@@ -21,31 +21,10 @@ const Transaction: FC<TransactionProps> = ({ transaction }) => {
21
21
return (
22
22
< div className = "flex items-center justify-between" >
23
23
< Tooltip content = { transaction . txHash } placement = "top" >
24
- { transaction . type === OptmisticTransactionType . Post ||
25
- transaction . type === OptmisticTransactionType . Quote ||
26
- transaction . type === OptmisticTransactionType . AssignUsername ||
27
- transaction . type === OptmisticTransactionType . UnassignUsername ||
28
- transaction . type === OptmisticTransactionType . SetAccountMetadata ? (
24
+ { Object . values ( OptmisticTransactionType ) . includes ( transaction . type ) ? (
29
25
< div className = "text-sm" >
30
26
{ convertEnumKeyToReadable ( transaction . type ) }
31
27
</ div >
32
- ) : transaction . type === OptmisticTransactionType . Follow ||
33
- transaction . type === OptmisticTransactionType . Unfollow ||
34
- transaction . type === OptmisticTransactionType . Block ||
35
- transaction . type === OptmisticTransactionType . Unblock ||
36
- transaction . type === OptmisticTransactionType . Repost ||
37
- transaction . type === OptmisticTransactionType . Comment ||
38
- transaction . type === OptmisticTransactionType . Collect ? (
39
- < div className = "text-sm" >
40
- { convertEnumKeyToReadable ( transaction . type ) } on{ " " }
41
- { transaction . followOn ||
42
- transaction . unfollowOn ||
43
- transaction . blockOn ||
44
- transaction . unblockOn ||
45
- transaction . repostOf ||
46
- transaction . commentOn ||
47
- transaction . collectOn }
48
- </ div >
49
28
) : null }
50
29
</ Tooltip >
51
30
< div className = "flex items-center space-x-2" >
0 commit comments