Skip to content

Commit 31407f9

Browse files
committed
Migrate to Lens v3
1 parent 8f0885e commit 31407f9

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

apps/web/src/components/Shared/Modal/OptimisticTransactions/Transaction.tsx

+1-22
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,10 @@ const Transaction: FC<TransactionProps> = ({ transaction }) => {
2121
return (
2222
<div className="flex items-center justify-between">
2323
<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) ? (
2925
<div className="text-sm">
3026
{convertEnumKeyToReadable(transaction.type)}
3127
</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>
4928
) : null}
5029
</Tooltip>
5130
<div className="flex items-center space-x-2">

0 commit comments

Comments
 (0)