Skip to content

Commit

Permalink
[docs] Update module reference for usePagination (mui#33675)
Browse files Browse the repository at this point in the history
* Update module reference for usePagination

While migrating to Material UI v5, we found the reference to the docs here were incorrectly referring to `Pagination`, but it should actually be `usePagination`

* docs: usePagination should be a default import

usePagination is also a default import
  • Loading branch information
fullstackzach authored and Daniel Rabe committed Nov 29, 2022
1 parent 69cbc48 commit 02e1130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/material/components/pagination/pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ related to the rendering of JSX.
The Pagination component is built on this hook.

```jsx
import { usePagination } from '@mui/material/Pagination';
import usePagination from '@mui/material/usePagination';
```

{{"demo": "UsePagination.js"}}
Expand Down

0 comments on commit 02e1130

Please sign in to comment.