Skip to content

Commit

Permalink
feature(web): Show the number of bulk selected bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Sep 1, 2024
1 parent ddc7e5d commit 77adb84
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/web/components/dashboard/BulkBookmarksAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import ActionConfirmingDialog from "@/components/ui/action-confirming-dialog";
import { useToast } from "@/components/ui/use-toast";
import useBulkActionsStore from "@/lib/bulkActions";
import { List, Pencil, Trash2, X } from "lucide-react";
import { CheckCheck, List, Pencil, Trash2, X } from "lucide-react";

import {
useDeleteBookmark,
Expand Down Expand Up @@ -163,7 +163,12 @@ export default function BulkBookmarksAction() {
open={manageListsModal}
setOpen={setManageListsModalOpen}
/>
<div className="flex">
<div className="flex items-center">
{isBulkEditEnabled && (
<p className="flex items-center gap-2">
( <CheckCheck size={18} /> {selectedBookmarks.length} )
</p>
)}
{actionList.map(
({ name, icon: Icon, action, isPending, hidden, alwaysEnable }) => (
<ActionButtonWithTooltip
Expand Down

0 comments on commit 77adb84

Please sign in to comment.