Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: zeego item key error (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
intergalacticspacehighway authored Jun 9, 2022
1 parent 7654db7 commit 78d3a4f
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions packages/app/components/nft-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,21 @@ function NFTDropdown({ nftId, listId, shouldEnableSharing = true }: Props) {
tw="w-60 rounded-2xl bg-white p-2 shadow dark:bg-gray-900"
>
{hasOwnership ? (
<>
<DropdownMenuItem
onSelect={() => {
hideNFT(nftId, listId);
}}
key="details"
tw="h-8 flex-1 overflow-hidden rounded-sm p-2"
>
<DropdownMenuItemTitle tw="font-semibold text-black dark:text-white">
Hide
</DropdownMenuItemTitle>
</DropdownMenuItem>
<DropdownMenuSeparator tw="m-1 h-[1px] bg-gray-200 dark:bg-gray-700" />
</>
<DropdownMenuItem
onSelect={() => {
hideNFT(nftId, listId);
}}
key="hide"
tw="h-8 flex-1 overflow-hidden rounded-sm p-2"
>
<DropdownMenuItemTitle tw="font-semibold text-black dark:text-white">
Hide
</DropdownMenuItemTitle>
</DropdownMenuItem>
) : null}

{hasOwnership ? (
<DropdownMenuSeparator tw="m-1 h-[1px] bg-gray-200 dark:bg-gray-700" />
) : null}

<DropdownMenuItem
Expand Down

0 comments on commit 78d3a4f

Please sign in to comment.