diff --git a/apps/web/components/shopping-lists/shopping-list-actions-menu.tsx b/apps/web/components/shopping-lists/shopping-list-actions-menu.tsx
index 79e7823..a2e1ce2 100644
--- a/apps/web/components/shopping-lists/shopping-list-actions-menu.tsx
+++ b/apps/web/components/shopping-lists/shopping-list-actions-menu.tsx
@@ -3,15 +3,10 @@
import { useState } from "react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
-import { MoreVertical, Pencil, Trash2 } from "lucide-react";
+import { Pencil, Trash2 } from "lucide-react";
import { toast } from "sonner";
-import { Button, buttonVariants } from "@/components/ui/button";
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
+import { Button } from "@/components/ui/button";
+import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import {
AlertDialog,
AlertDialogAction,
@@ -96,30 +91,45 @@ export function ShoppingListActionsMenu({ listId, name, onRenamed, onDeleted, re
}
}
+ // Rows on the index page are wrapped in a Link — stop the click from bubbling to it
+ // and prevent the anchor's default navigation.
+ function stopRowNavigation(e: React.MouseEvent) {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+
return (
<>
-
- {
- // Rows on the index page are wrapped in a Link — stop the click
- // from bubbling to it and prevent the anchor's default navigation.
- e.preventDefault();
- e.stopPropagation();
- }}
- >
-
-
-
-
- {t("rename")}
-
- setDeleteOpen(true)}>
- {tCommon("delete")}
-
-
-
+
+
+
+ { stopRowNavigation(e); openRename(); }}
+ >
+
+
+ } />
+ {t("rename")}
+
+
+ { stopRowNavigation(e); setDeleteOpen(true); }}
+ >
+
+
+ } />
+ {tCommon("delete")}
+
+
+