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 #5758

Merged
merged 1 commit into from
Jan 11, 2021
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
9 changes: 5 additions & 4 deletions packages/ra-core/src/export/fetchRelatedRecords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { Record, Identifier, DataProviderProxy } from '../types';
*
* @example
* fetchRelatedRecords(dataProvider)(records, 'post_id', 'posts').then(posts =>
* posts.map(record => ({
* ...record,
* post_title: posts[record.post_id].title,
* }));
* posts.map(record => ({
* ...record,
* post_title: posts[record.post_id].title,
* }))
* );
*/
const fetchRelatedRecords = (dataProvider: DataProviderProxy) => (
data,
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/button/SortButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useListSortContext, useTranslate } from 'ra-core';
/**
* A button allowing to change the sort field and order.
*
* To be used inside a ListContext (e.g. inside a <List> or <ReferenceManyfield>)
* To be used inside a ListContext (e.g. inside a <List> or <ReferenceManyField>)
*
* Expects one 'fields' prop, containing an array of field strings that shall
* be used and displayed for sorting.
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/field/ArrayField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const getDataAndIds = (record: object, source: string, fieldKey: string) => {
* <li key={item.name}>{item.name}</li>
* ))}
* </ul>
* )
* );
* TagsField.defaultProps = { addLabel: true };
*/
export const ArrayField: FC<ArrayFieldProps> = memo<ArrayFieldProps>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ describe('<AutocompleteInput />', () => {
render={() => (
<AutocompleteInput
{...defaultProps}
helperText="Can i help you?"
helperText="Can I help you?"
choices={[{ id: 1, name: 'hello' }]}
/>
)}
/>
);
expect(queryByText('Can i help you?')).not.toBeNull();
expect(queryByText('Can I help you?')).not.toBeNull();
});

describe('error message', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/BooleanInput.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('<BooleanInput />', () => {
expect(input.checked).toBe(true);
});

it('should displays errors', () => {
it('should display errors', () => {
// This validator always returns an error
const validate = () => 'ra.validation.error';

Expand Down