(props: CreateProps)
| 12 | import { ROLES_OPTIONS } from "../user/RolesOptions"; |
| 13 | |
| 14 | export const UserCreate = (props: CreateProps): React.ReactElement => { |
| 15 | return ( |
| 16 | <Create {...props}> |
| 17 | <SimpleForm> |
| 18 | <TextInput label="First Name" source="firstName" /> |
| 19 | <TextInput label="Last Name" source="lastName" /> |
| 20 | <PasswordInput label="Password" source="password" /> |
| 21 | <SelectArrayInput |
| 22 | source="roles" |
| 23 | choices={ROLES_OPTIONS} |
| 24 | optionText="label" |
| 25 | optionValue="value" |
| 26 | /> |
| 27 | <TextInput label="Username" source="username" /> |
| 28 | </SimpleForm> |
| 29 | </Create> |
| 30 | ); |
| 31 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected