From 3d9578ccf243f7b196e0eee05579e41cad3043da Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Sat, 17 Aug 2024 16:31:22 -0400 Subject: [PATCH] General Fixes and Improvements --- .../[organizationId]/settings/page.tsx | 1 + components/ui/pagination.tsx | 118 ++++++++++++++++++ lib/db.ts | 3 - package.json | 2 +- 4 files changed, 120 insertions(+), 4 deletions(-) create mode 100644 components/ui/pagination.tsx diff --git a/app/(platform)/(dashboard)/organization/[organizationId]/settings/page.tsx b/app/(platform)/(dashboard)/organization/[organizationId]/settings/page.tsx index 2d46045..1b72f9c 100644 --- a/app/(platform)/(dashboard)/organization/[organizationId]/settings/page.tsx +++ b/app/(platform)/(dashboard)/organization/[organizationId]/settings/page.tsx @@ -17,6 +17,7 @@ const SettingsPage = () => { }, }, }} + routing='hash' /> ); diff --git a/components/ui/pagination.tsx b/components/ui/pagination.tsx new file mode 100644 index 0000000..1c0d153 --- /dev/null +++ b/components/ui/pagination.tsx @@ -0,0 +1,118 @@ +import * as React from 'react'; +import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'; +import Link from 'next/link'; + +import { cn } from '@/lib/utils'; +import { ButtonProps, buttonVariants } from '@/components/ui/button'; + +const Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => ( +