Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in docs. #3828

Merged
merged 1 commit into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Ideal for embedded arrays of objects, e.g. `tags` and `backlinks` in the followi

```js
{
id: 123
id: 123,
tags: [
{ name: 'foo' },
{ name: 'bar' }
Expand Down
2 changes: 1 addition & 1 deletion docs/Inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import { ArrayInput, SimpleFormIterator, DateInput, TextInput } from 'react-admi

```js
{
id: 123
id: 123,
backlinks: [
{
date: '2012-08-10T00:00:00.000Z',
Expand Down
2 changes: 1 addition & 1 deletion docs/List.md
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ const postRowClick = (id, basePath, record) => record.editable ? 'edit' : 'show'
```js
import fetchUserRights from './fetchUserRights';

const postRowClick = (id, basePath, record) => fetchUserRights().then(({ canEdit }) canEdit ? 'edit' : 'show');
const postRowClick = (id, basePath, record) => fetchUserRights().then(({ canEdit }) => canEdit ? 'edit' : 'show');
```

### `expand`
Expand Down
4 changes: 2 additions & 2 deletions docs/Theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const VisitorFilter = props => {
);
};

// The List component supports the `root`, `header`, `actions` and `noResults` CSS classes. Here we override the `header` and `actions` classes
WiXSL marked this conversation as resolved.
Show resolved Hide resolved
// The List component supports the `root`, `header`, `actions` and `noResults` CSS classes. Here we override the `header` and `actions` classes
const useListStyles = makeStyles({
actions: {
backgroundColor: 'Lavender',
Expand Down Expand Up @@ -141,7 +141,7 @@ If you need more control over the HTML code, you can also create your own [Field

## Conditional Formatting

Sometimes you want the format to depend on the value. The following example shows how to create a new custom `NumberField` component which highlight its text in red when its value is 100 or higher.
Sometimes you want the format to depend on the value. The following example shows how to create a new custom `NumberField` component which highlight its text in red when its value is 100 or higher.

{% raw %}
```jsx
Expand Down
4 changes: 2 additions & 2 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ export default {
method: 'PUT',
body: JSON.stringify(params.data),
}).then(({ json }) => ({ data: json }));
}
},

create: (resource, params) =>
httpClient(`${apiUrl}/${resource}`, {
Expand All @@ -895,7 +895,7 @@ export default {
body: JSON.stringify(params.data),
}).then(({ json }) => ({ data: json }));
}
});
};
```

**Tip**: `fetchUtils.fetchJson()` is just a shortcut for `fetch().then(r => r.json())`, plus a control of the HTTP response code to throw an `HTTPError` in case of 4xx or 5xx response. Feel free to use `fetch()` directly if it doesn't suit your needs.
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ The introspection result is an object with 4 properties:

- `types`: an array of all the GraphQL types discovered on your endpoint
- `queries`: an array of all the GraphQL queries and mutations discovered on your endpoint
- `resources`: an array of objects with a `type` property, which is the GraphQL type for this resource, and a property for each react-admin fetch verb for which we found a matching query or mutation
- `resources`: an array of objects with a `type` property, which is the GraphQL type for this resource, and a property for each react-admin fetch verb for which we found a matching query or mutation
- `schema`: the full schema

For example:
Expand Down