Skip to content

Commit

Permalink
Update pagination.mdx (shadcn-ui#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

0 comments on commit 6b523b6

Please sign in to comment.