Skip to content

Commit 8413658

Browse files
authored
Merge pull request #96 from dreglad/patch-1
[Doc] Replace TablePagination with ListPagination
2 parents 1c0c2ef + 5e612b4 commit 8413658

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/content/docs/List.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ The `pagination` prop allows to replace the default pagination controls by your
196196

197197
```tsx
198198
// in src/MyPagination.js
199-
import { TablePagination, List } from '@/components/admin';
199+
import { List, ListPagination } from '@/components/admin';
200200

201-
const PostPagination = () => <TablePagination rowsPerPageOptions={[10, 25, 50, 100]} />;
201+
const PostPagination = () => <ListPagination rowsPerPageOptions={[10, 25, 50, 100]} />;
202202

203203
export const PostList = () => (
204204
<List pagination={<PostPagination />}>
@@ -224,11 +224,11 @@ The default pagination component's `rowsPerPageOptions` includes options of 5, 1
224224
```diff
225225
// in src/MyPagination.js
226226
-import { List } from '@/components/admin';
227-
+import { List, Pagination } from '@/components/admin';
227+
+import { List, ListPagination } from '@/components/admin';
228228

229229
export const PostList = () => (
230230
- <List perPage={6}>
231-
+ <List perPage={6} pagination={<Pagination rowsPerPageOptions={[6, 12, 24, 36]} />}>
231+
+ <List perPage={6} pagination={<ListPagination rowsPerPageOptions={[6, 12, 24, 36]} />}>
232232
...
233233
</List>
234234
);
@@ -883,4 +883,4 @@ Users without access will be redirected to the [Access Denied page](https://marm
883883

884884
:::note
885885
Access control is disabled when you use [the `disableAuthentication` prop](#disableauthentication).
886-
:::
886+
:::

0 commit comments

Comments
 (0)