Skip to content

Commit

Permalink
Merge pull request #3553 from jaytula/next-longtextinput-to-textinput…
Browse files Browse the repository at this point in the history
…-demo-app

Change LongTextInput to TextInput in examples/demo app
  • Loading branch information
fzaninotto authored Aug 20, 2019
2 parents d5fb353 + a6091f0 commit 4b6b422
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
13 changes: 4 additions & 9 deletions examples/demo/src/visitors/VisitorCreate.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import React from 'react';
import {
Create,
DateInput,
FormTab,
LongTextInput,
TabbedForm,
TextInput,
} from 'react-admin';
import { Create, DateInput, FormTab, TabbedForm, TextInput } from 'react-admin';
import { makeStyles } from '@material-ui/core/styles';

export const styles = {
Expand Down Expand Up @@ -54,9 +47,11 @@ const VisitorCreate = props => {
label="resources.customers.tabs.address"
path="address"
>
<LongTextInput
<TextInput
source="address"
formClassName={classes.address}
multiline={true}
fullWidth={true}
/>
<TextInput
source="zipcode"
Expand Down
5 changes: 3 additions & 2 deletions examples/demo/src/visitors/VisitorEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
Edit,
EditButton,
FormTab,
LongTextInput,
NullableBooleanInput,
NumberField,
ReferenceManyField,
Expand Down Expand Up @@ -55,9 +54,11 @@ const VisitorEdit = props => {
label="resources.customers.tabs.address"
path="address"
>
<LongTextInput
<TextInput
source="address"
formClassName={classes.address}
multiline={true}
fullWidth={true}
/>
<TextInput
source="zipcode"
Expand Down

0 comments on commit 4b6b422

Please sign in to comment.