Skip to content

Commit

Permalink
update page.tsx -- add the menu-dropdown to gthe filter button
Browse files Browse the repository at this point in the history
  • Loading branch information
frank1003A committed Jul 26, 2024
1 parent 8a32b38 commit 8b9b4d6
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/app/dashboard/(admin)/admin/products/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import { CirclePlus, Filter } from "lucide-react";
import CardComponent from "~/components/adminDashboard/CardComponent";
import { cardData } from "~/components/adminDashboard/cardData";
import { Button } from "~/components/common/common-button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuTrigger,
} from "~/components/ui/dropdown-menu";
import AddProductModal from "./_components/ProductModal/add-product-modal";
import ProductTable from "./_components/ProductTable/product-table";

Expand Down Expand Up @@ -33,10 +40,19 @@ const page = () => {
</p>
</div>
<div className="ml-0 flex w-full items-center justify-start gap-[10px] md:justify-end lg:ml-auto lg:w-fit">
<Button className="inline-flex h-10 items-center justify-center rounded border border-slate-300 bg-transparent p-2.5 text-base text-neutral-600 shadow-none hover:border-primary hover:text-primary">
<Filter />
Filter
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button className="inline-flex h-10 items-center justify-center rounded border border-slate-300 bg-transparent p-2.5 text-base text-neutral-600 shadow-none hover:border-primary hover:text-primary">
<Filter />
Filter
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuLabel className="sr-only">Actions</DropdownMenuLabel>
<DropdownMenuItem>Draft</DropdownMenuItem>
<DropdownMenuItem>Active</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<AddProductModal>
<Button className="inline-flex h-10 items-center justify-center bg-primary">
<CirclePlus />
Expand Down

0 comments on commit 8b9b4d6

Please sign in to comment.