Skip to content

Commit

Permalink
fixed list
Browse files Browse the repository at this point in the history
  • Loading branch information
AshuKr22 committed Oct 25, 2024
1 parent fb5491d commit d3d025d
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions client/src/pages/List/UserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,19 @@ const UserLists: React.FC = () => {
onClick={() => handleListClick(list.list_id)}
>
<div className="absolute top-2 right-2">
{list.name !== "Top 5 Movies" && (
<button
onClick={(e) => {
e.stopPropagation() // Prevents triggering list click
handleDeleteList(list.list_id) // Call delete function
}}
className="text-gray-400 hover:text-red-500"
>
<Trash className="w-5 h-5" />
</button>
)}
{list.name !== "Top 5 Movies" &&
list.name !== "Favourites" &&

This comment has been minimized.

Copy link
@mehul-m-prajapati

mehul-m-prajapati Oct 26, 2024

Contributor

@AshuKr22 : Why are you not allowing Favourites/Watchlist to get deleted ?

list.name !== "WatchList" && (
<button
onClick={(e) => {
e.stopPropagation() // Prevents triggering list click
handleDeleteList(list.list_id) // Call delete function
}}
className="text-gray-400 hover:text-red-500"
>
<Trash className="w-5 h-5" />
</button>
)}
</div>
<div className="flex flex-col md:flex-row">
<div className="flex-shrink-0 md:w-1/3 w-full flex space-x-1 p-4 justify-center">
Expand Down

0 comments on commit d3d025d

Please sign in to comment.