Skip to content

Commit

Permalink
fix: notifications/Menu - Replace existing image icons with built-in …
Browse files Browse the repository at this point in the history
…icons sourced from the Lucid library
  • Loading branch information
weiwei2694 committed Oct 25, 2023
1 parent 58d5d03 commit 674f064
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/components/cards/notifications/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { BookX, MoreHorizontal } from "lucide-react";
import { BookX, MoreHorizontal, Trash } from "lucide-react";
import Image from "next/image";
import { usePathname } from "next/navigation";
import { MouseEvent, useState, useTransition } from "react";
Expand Down Expand Up @@ -71,25 +71,15 @@ const Menu = ({ notificationId, isRead }: Props) => {
className="text-[#f4212e]"
disabled={isPending}
>
<div className="w-7 flex items-center justify-center">
<BookX className="object-contain w-4 h-4" />
</div>
<BookX className="object-contain w-4 h-4" />
Mark as read
</DropdownMenuItem>
)}
<DropdownMenuItem
onClick={handlerSetIsDialog}
className="text-[#f4212e]"
>
<div className="w-7 flex items-center justify-center">
<Image
src="/assets/delete.svg"
alt="Delete"
width={30}
height={30}
className="object-contain"
/>
</div>
<Trash className="w-4 h-4" />
Delete Notification
</DropdownMenuItem>
</DropdownMenuContent>
Expand Down

0 comments on commit 674f064

Please sign in to comment.