Fix coding style

This commit is contained in:
dklimpel 2020-03-29 20:43:49 +02:00
parent b3f937b566
commit df8173b3b2

View File

@ -74,12 +74,15 @@ export const UserCreate = props => (
<SimpleForm> <SimpleForm>
<TextInput source="id" autoComplete="off" validate={validateUser} /> <TextInput source="id" autoComplete="off" validate={validateUser} />
<TextInput source="displayname" /> <TextInput source="displayname" />
<ArrayInput source="threepids"> <ArrayInput source="threepids">
<SimpleFormIterator> <SimpleFormIterator>
<SelectInput source="medium" choices={[ <SelectInput
{ id: 'email', name: 'resources.users.email' }, source="medium"
{ id: 'msisdn', name: 'resources.users.msisdn' }, choices={[
]} /> { id: "email", name: "resources.users.email" },
{ id: "msisdn", name: "resources.users.msisdn" },
]}
/>
<TextInput source="address" /> <TextInput source="address" />
</SimpleFormIterator> </SimpleFormIterator>
</ArrayInput> </ArrayInput>
@ -97,10 +100,13 @@ export const UserEdit = props => (
<TextInput source="displayname" /> <TextInput source="displayname" />
<ArrayInput source="threepids"> <ArrayInput source="threepids">
<SimpleFormIterator> <SimpleFormIterator>
<SelectInput source="medium" choices={[ <SelectInput
{ id: 'email', name: 'resources.users.email' }, source="medium"
{ id: 'msisdn', name: 'resources.users.msisdn' }, choices={[
]} /> { id: "email", name: "resources.users.email" },
{ id: "msisdn", name: "resources.users.msisdn" },
]}
/>
<TextInput source="address" /> <TextInput source="address" />
</SimpleFormIterator> </SimpleFormIterator>
</ArrayInput> </ArrayInput>