diff --git a/docs/DataTable.md b/docs/DataTable.md index 5557da8066c..499124080d7 100644 --- a/docs/DataTable.md +++ b/docs/DataTable.md @@ -143,7 +143,7 @@ const PostList = () => ( ``` {% endraw %} -**Tip**: `` also lets you customize the table [header](#header) and [footer](#footer) components. +**Tip**: `` also lets you customize the table [header](#head) and [footer](#foot) components. ## `bulkActionButtons` @@ -743,7 +743,7 @@ Using the `isRowExpandable` prop, you can customize which rows can have a collap For instance, this code shows an expand button only for rows that have a detail to show: ```tsx -import { List, DataTable useRecordContext } from 'react-admin'; +import { List, DataTable, useRecordContext } from 'react-admin'; const PostPanel = () => { const record = useRecordContext(); @@ -1645,7 +1645,7 @@ An action column should not be sortable, so you don't need to specify a `source` ```tsx - + ``` @@ -1681,9 +1681,9 @@ const ProductList = () => ( - + - + @@ -1715,9 +1715,9 @@ As this is quite verbose, you may prefer using the `` component from t - Users must have the `'read'` permission on a resource column to see it in the export: ```jsx -{ action: "read", resource: `${resource}.${source}` }. +{ action: "read", resource: `${resource}.${source}` } // or -{ action: "read", resource: `${resource}.*` }. +{ action: "read", resource: `${resource}.*` } ``` - Users must have the `'delete'` permission on the resource to see the ``. @@ -1786,7 +1786,7 @@ const ProductList = () => ( **Tip**: Adding the 'read' permission for the resource itself doesn't grant the 'read' permission on the columns. If you want a user to see all possible columns, add the 'read' permission on columns using a wildcard: ```jsx -{ action: "read", resource: "products.*" }. +{ action: "read", resource: "products.*" } ``` ## Typescript diff --git a/docs/InPlaceEditor.md b/docs/InPlaceEditor.md index 64fe5a689f7..72fc857f5b4 100644 --- a/docs/InPlaceEditor.md +++ b/docs/InPlaceEditor.md @@ -158,7 +158,7 @@ For example, to render a `` in read mode, you can use the following The component to render in edit mode. By default, it's a `` using the `source` prop. -You can use any [input component](./Input.md) instead, as it renders in a `
`. You will probably need to tweak the input variant, margin and style so that it matches the style of the read mode component. +You can use any [input component](./Inputs.md) instead, as it renders in a ``. You will probably need to tweak the input variant, margin and style so that it matches the style of the read mode component.