From 7ebf66703224cff318f04f10d03312d280862cfb Mon Sep 17 00:00:00 2001 From: "Bryson G." Date: Mon, 9 Dec 2024 18:18:43 -0800 Subject: [PATCH] build(dashboard): shadcn pagination --- dashboard/package-lock.json | 2 +- dashboard/package.json | 2 +- dashboard/src/components/ui/pagination.tsx | 117 +++++++++++++++++++++ 3 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 dashboard/src/components/ui/pagination.tsx diff --git a/dashboard/package-lock.json b/dashboard/package-lock.json index bd7a0733d..9ed39d2d5 100644 --- a/dashboard/package-lock.json +++ b/dashboard/package-lock.json @@ -16,7 +16,7 @@ "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-select": "^2.0.0", "@radix-ui/react-separator": "^1.1.0", - "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-switch": "^1.1.1", "@tanstack/react-query": "^5.37.1", "class-variance-authority": "^0.7.0", diff --git a/dashboard/package.json b/dashboard/package.json index 61d32d65e..8ccf848b5 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -19,7 +19,7 @@ "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-select": "^2.0.0", "@radix-ui/react-separator": "^1.1.0", - "@radix-ui/react-slot": "^1.0.2", + "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-switch": "^1.1.1", "@tanstack/react-query": "^5.37.1", "class-variance-authority": "^0.7.0", diff --git a/dashboard/src/components/ui/pagination.tsx b/dashboard/src/components/ui/pagination.tsx new file mode 100644 index 000000000..fec5aa562 --- /dev/null +++ b/dashboard/src/components/ui/pagination.tsx @@ -0,0 +1,117 @@ +import * as React from "react" +import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react" + +import { cn } from "@/components/utils" +import { ButtonProps, buttonVariants } from "@/components/ui/button" + +const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => ( +