Skip to content

Commit 8e64475

Browse files
authored
Merge pull request #8087 from zackha/patch-3
[Doc] Fix typos in `ReferenceArrayField`
2 parents 811a126 + 856dc3e commit 8e64475

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/ReferenceArrayField.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ For instance, to render only tags that are 'published', you can use the followin
9797
<SingleFieldList>
9898
<ChipField source="name" />
9999
</SingleFieldList>
100-
</ReferenceField>
100+
</ReferenceArrayField>
101101
```
102102
{% endraw %}
103103

@@ -111,7 +111,7 @@ By default, `<SimpleShowLayout>`, `<Datagrid>` and other layout components infer
111111
<SingleFieldList>
112112
<ChipField source="name" />
113113
</SingleFieldList>
114-
</ReferenceField>
114+
</ReferenceArrayField>
115115
```
116116

117117
That's why you often need to set an explicit `label` on a `<ReferenceField>`:
@@ -121,7 +121,7 @@ That's why you often need to set an explicit `label` on a `<ReferenceField>`:
121121
<SingleFieldList>
122122
<ChipField source="name" />
123123
</SingleFieldList>
124-
</ReferenceField>
124+
</ReferenceArrayField>
125125
```
126126

127127
React-admin uses [the i18n system](./Translation.md) to translate the label, so you can use translation keys to have one label for each language supported by the interface:
@@ -131,7 +131,7 @@ React-admin uses [the i18n system](./Translation.md) to translate the label, so
131131
<SingleFieldList>
132132
<ChipField source="name" />
133133
</SingleFieldList>
134-
</ReferenceField>
134+
</ReferenceArrayField>
135135
```
136136

137137
## `pagination`
@@ -178,7 +178,7 @@ For instance, if the `posts` resource has a `tag_ids` field, set the `reference`
178178
<SingleFieldList>
179179
<ChipField source="name" />
180180
</SingleFieldList>
181-
</ReferenceField>
181+
</ReferenceArrayField>
182182
```
183183

184184
## `sort`
@@ -200,7 +200,7 @@ For instance, to sort tags by title in ascending order, you can use the followin
200200
<SingleFieldList>
201201
<ChipField source="name" />
202202
</SingleFieldList>
203-
</ReferenceField>
203+
</ReferenceArrayField>
204204
```
205205
{% endraw %}
206206

0 commit comments

Comments
 (0)