Skip to content

Commit 20e4020

Browse files
committed
Fix authLoading documentation.
1 parent 32d5a70 commit 20e4020

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/Create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const PostCreate = () => (
128128

129129
## `authLoading`
130130

131-
By default, `<Create>` renders the children while checking for authentication and permissions. You can display a component during this time via the `authLoading` prop:
131+
By default, `<Create>` renders the `<Loading>` component while checking for authentication and permissions. You can display a custom component via the `authLoading` prop:
132132

133133
```jsx
134134
import { Create } from 'react-admin';

docs/Edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const Aside = () => {
206206

207207
## `authLoading`
208208

209-
By default, `<Edit>` renders the `<Loading>` component while checking for authentication and permissions. You can display a custom component during this time via the `authLoading` prop:
209+
By default, `<Edit>` renders the `<Loading>` component while checking for authentication and permissions. You can display a custom component via the `authLoading` prop:
210210

211211
```jsx
212212
import { Edit } from 'react-admin';

docs/List.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export const PostList = () => (
278278

279279
## `authLoading`
280280

281-
By default, `<List>` renders the children while checking for authentication and permissions. You can display a component during this time via the `authLoading` prop:
281+
By default, `<List>` renders the `<Loading>` component while checking for authentication and permissions. You can display a custom component via the `authLoading` prop:
282282

283283
```jsx
284284
import { List } from 'react-admin';

docs/Show.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const Aside = () => {
153153

154154
## `authLoading`
155155

156-
By default, `<Show>` renders the children while checking for authentication and permissions. You can display a component during this time via the `authLoading` prop:
156+
By default, `<Show>` renders the `<Loading>` component while checking for authentication and permissions. You can display a custom component via the `authLoading` prop:
157157

158158
```jsx
159159
import { Show } from 'react-admin';
@@ -896,4 +896,4 @@ const PostShow = () => (
896896

897897
Users without access will be redirected to the [Access Denied page](./Admin.md#accessdenied).
898898

899-
**Note**: Access control is disabled when you use [the `disableAuthentication` prop](#disableauthentication).
899+
**Note**: Access control is disabled when you use [the `disableAuthentication` prop](#disableauthentication).

0 commit comments

Comments
 (0)