Skip to content

Commit

Permalink
Update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
asvarcas committed Mar 4, 2021
1 parent 0f21283 commit 6313218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The `<Resource>` component is a configuration component that allows to define su
// in posts.js
import * as React from "react";
import { List, Datagrid, Edit, Create, SimpleForm, DateField, TextField, EditButton, TextInput, DateInput } from 'react-admin';
export PostIcon from '@material-ui/core/svg-icons/action/book';
export PostIcon from '@material-ui/icons/Book';

export const PostList = (props) => (
<List {...props}>
Expand All @@ -101,7 +101,7 @@ export const PostEdit = (props) => (
<SimpleForm>
<TextInput disabled source="id" />
<TextInput source="title" />
<TextInput source="teaser" options={{ multiLine: true }} />
<TextInput source="teaser" options={{ multiline: true }} />
<TextInput multiline source="body" />
<DateInput label="Publication date" source="published_at" />
<TextInput source="average_note" />
Expand All @@ -114,7 +114,7 @@ export const PostCreate = (props) => (
<Create title="Create a Post" {...props}>
<SimpleForm>
<TextInput source="title" />
<TextInput source="teaser" options={{ multiLine: true }} />
<TextInput source="teaser" options={{ multiline: true }} />
<TextInput multiline source="body" />
<TextInput label="Publication date" source="published_at" />
<TextInput source="average_note" />
Expand Down

0 comments on commit 6313218

Please sign in to comment.