Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 7, 2024
1 parent 8f0885e commit 31407f9
Showing 1 changed file with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,10 @@ const Transaction: FC<TransactionProps> = ({ transaction }) => {
return (
<div className="flex items-center justify-between">
<Tooltip content={transaction.txHash} placement="top">
{transaction.type === OptmisticTransactionType.Post ||
transaction.type === OptmisticTransactionType.Quote ||
transaction.type === OptmisticTransactionType.AssignUsername ||
transaction.type === OptmisticTransactionType.UnassignUsername ||
transaction.type === OptmisticTransactionType.SetAccountMetadata ? (
{Object.values(OptmisticTransactionType).includes(transaction.type) ? (
<div className="text-sm">
{convertEnumKeyToReadable(transaction.type)}
</div>
) : transaction.type === OptmisticTransactionType.Follow ||
transaction.type === OptmisticTransactionType.Unfollow ||
transaction.type === OptmisticTransactionType.Block ||
transaction.type === OptmisticTransactionType.Unblock ||
transaction.type === OptmisticTransactionType.Repost ||
transaction.type === OptmisticTransactionType.Comment ||
transaction.type === OptmisticTransactionType.Collect ? (
<div className="text-sm">
{convertEnumKeyToReadable(transaction.type)} on{" "}
{transaction.followOn ||
transaction.unfollowOn ||
transaction.blockOn ||
transaction.unblockOn ||
transaction.repostOf ||
transaction.commentOn ||
transaction.collectOn}
</div>
) : null}
</Tooltip>
<div className="flex items-center space-x-2">
Expand Down

0 comments on commit 31407f9

Please sign in to comment.