MCPcopy Create free account
hub / github.com/amplication/sample-app / UserCreate

Function UserCreate

apps/ecommerce-admin/src/user/UserCreate.tsx:14–31  ·  view source on GitHub ↗
(props: CreateProps)

Source from the content-addressed store, hash-verified

12import { ROLES_OPTIONS } from "../user/RolesOptions";
13
14export 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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected