Skip to content

Commit 6cc4819

Browse files
committed
Fix JSDoc
1 parent 986d8a5 commit 6cc4819

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/ra-core/src/controller/input/ReferenceArrayInputBase.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { ChoicesContextValue } from '../../form';
2020
* tag_ids: [ "1", "23", "4" ]
2121
* }
2222
*
23-
* ReferenceArrayInput component fetches the current resources (using
23+
* ReferenceArrayInputBase component fetches the current resources (using
2424
* `dataProvider.getMany()`) as well as possible resources (using
2525
* `dataProvider.getList()`) in the reference endpoint. It then
2626
* delegates rendering to its child component, to which it makes the possible
@@ -33,9 +33,9 @@ import { ChoicesContextValue } from '../../form';
3333
* export const PostEdit = () => (
3434
* <Edit>
3535
* <SimpleForm>
36-
* <ReferenceArrayInput source="tag_ids" reference="tags">
36+
* <ReferenceArrayInputBase source="tag_ids" reference="tags">
3737
* <SelectArrayInput optionText="name" />
38-
* </ReferenceArrayInput>
38+
* </ReferenceArrayInputBase>
3939
* </SimpleForm>
4040
* </Edit>
4141
* );
@@ -44,36 +44,36 @@ import { ChoicesContextValue } from '../../form';
4444
* by setting the `perPage` prop.
4545
*
4646
* @example
47-
* <ReferenceArrayInput
47+
* <ReferenceArrayInputBase
4848
* source="tag_ids"
4949
* reference="tags"
5050
* perPage={100}>
5151
* <SelectArrayInput optionText="name" />
52-
* </ReferenceArrayInput>
52+
* </ReferenceArrayInputBase>
5353
*
5454
* By default, orders the possible values by id desc. You can change this order
5555
* by setting the `sort` prop (an object with `field` and `order` properties).
5656
*
5757
* @example
58-
* <ReferenceArrayInput
58+
* <ReferenceArrayInputBase
5959
* source="tag_ids"
6060
* reference="tags"
6161
* sort={{ field: 'name', order: 'ASC' }}>
6262
* <SelectArrayInput optionText="name" />
63-
* </ReferenceArrayInput>
63+
* </ReferenceArrayInputBase>
6464
*
6565
* Also, you can filter the query used to populate the possible values. Use the
6666
* `filter` prop for that.
6767
*
6868
* @example
69-
* <ReferenceArrayInput
69+
* <ReferenceArrayInputBase
7070
* source="tag_ids"
7171
* reference="tags"
7272
* filter={{ is_public: true }}>
7373
* <SelectArrayInput optionText="name" />
74-
* </ReferenceArrayInput>
74+
* </ReferenceArrayInputBase>
7575
*
76-
* The enclosed component may filter results. ReferenceArrayInput create a ChoicesContext which provides
76+
* The enclosed component may filter results. ReferenceArrayInputBase create a ChoicesContext which provides
7777
* a `setFilters` function. You can call this function to filter the results.
7878
*/
7979
export const ReferenceArrayInputBase = <RecordType extends RaRecord = any>(

0 commit comments

Comments
 (0)