Skip to content

Commit

Permalink
Update pagination.mdx (#2191)
Browse files Browse the repository at this point in the history
fix the Nextjs import example
  • Loading branch information
kal07 authored Dec 26, 2023
1 parent e3d5377 commit 6b523b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/pagination.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ By default the `<PaginationLink />` component will render an `<a />` tag.
To use the Next.js `<Link />` component, make the following updates to `pagination.tsx`.

```diff showLineNumbers /typeof Link/ {1}
+ import { Link } from "next/link"
+ import Link from "next/link"

- type PaginationLinkProps = ... & React.ComponentProps<"a">
+ type PaginationLinkProps = ... & React.ComponentProps<typeof Link>
Expand Down

1 comment on commit 6b523b6

@vercel
Copy link

@vercel vercel bot commented on 6b523b6 Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./apps/www

ui-shadcn-pro.vercel.app
ui-git-main-shadcn-pro.vercel.app
ui.shadcn.com
example-playground.vercel.app

Please sign in to comment.