Skip to content

Commit a8aabbe

Browse files
committed
Fix imports in ReferenceArrayFieldBase documentation.
1 parent 1238656 commit a8aabbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/ReferenceArrayFieldBase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ A typical `post` record therefore looks like this:
4545
In that case, use `<ReferenceArrayFieldBase>` to display the post tag names as a list of chips, as follows:
4646

4747
```tsx
48-
import { ShowBase, ReferenceArrayFieldBase } from 'ra-core';
48+
import { ShowBase, ReferenceArrayFieldBase } from 'react-admin';
4949

5050
export const PostShow = () => (
5151
<ShowBase>
@@ -179,7 +179,7 @@ For instance, to render only tags that are 'published', you can use the followin
179179
By default, `<ReferenceArrayFieldBase>` renders nothing when there is no connectivity and the records haven't been cached yet. You can provide your own component via the `offline` prop:
180180
181181
```jsx
182-
import { ReferenceArrayFieldBase, ShowBase } from 'ra-core';
182+
import { ReferenceArrayFieldBase, ShowBase } from 'react-admin';
183183

184184
export const PostShow = () => (
185185
<ShowBase>
@@ -197,7 +197,7 @@ export const PostShow = () => (
197197
**Tip**: If the records are in the Tanstack Query cache but you want to warn the user that they may see an outdated version, you can use the `<IsOffline>` component:
198198
199199
```jsx
200-
import { IsOffline, ReferenceArrayFieldBase, ShowBase } from 'ra-core';
200+
import { IsOffline, ReferenceArrayFieldBase, ShowBase } from 'react-admin';
201201

202202
export const PostShow = () => (
203203
<ShowBase>

0 commit comments

Comments
 (0)