diff --git a/docs/Authentication.md b/docs/Authentication.md index 555585733ed..a3f993c3344 100644 --- a/docs/Authentication.md +++ b/docs/Authentication.md @@ -52,7 +52,7 @@ For instance, to query an authentication route via HTTPS and store the credentia ```js // in src/authProvider.js -export default { +const authProvider = { login: ({ username, password }) => { const request = new Request('https://mydomain.com/authenticate', { method: 'POST', @@ -71,7 +71,7 @@ export default { }); }, // ... -} +}; export default authProvider; ``` diff --git a/docs/CreateEdit.md b/docs/CreateEdit.md index 498daa86b27..3c13c7de876 100644 --- a/docs/CreateEdit.md +++ b/docs/CreateEdit.md @@ -703,7 +703,7 @@ export default { } ``` -See the [Translation documentation](Translation.md#translating-error-messages) for details. +See the [Translation documentation](Translation.md#translation-messages) for details. **Tip**: Make sure to define validation functions or array of functions in a variable, instead of defining them directly in JSX. This can result in a new function or array at every render, and trigger infinite rerender. diff --git a/docs/CustomApp.md b/docs/CustomApp.md index 733333d8ec0..0713474b2a7 100644 --- a/docs/CustomApp.md +++ b/docs/CustomApp.md @@ -26,7 +26,6 @@ import { all, fork } from 'redux-saga/effects'; import { adminReducer, adminSaga, - defaultI18nProvider, USER_LOGOUT, } from 'react-admin'; diff --git a/docs/DataProviders.md b/docs/DataProviders.md index c1d2828a92c..103d046fe0f 100644 --- a/docs/DataProviders.md +++ b/docs/DataProviders.md @@ -386,7 +386,7 @@ dataProvider.getManyReference('comments', { target: 'post_id', id: 123, sort: { field: 'created_at', order: 'DESC' } -}); +}) .then(response => console.log(response)); // {