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

Function OrderCreate

apps/ecommerce-admin/src/order/OrderCreate.tsx:13–33  ·  view source on GitHub ↗
(props: CreateProps)

Source from the content-addressed store, hash-verified

11import { ProductTitle } from "../product/ProductTitle";
12
13export const OrderCreate = (props: CreateProps): React.ReactElement => {
14 return (
15 <Create {...props}>
16 <SimpleForm>
17 <ReferenceInput
18 source="customer.id"
19 reference="Customer"
20 label="Customer"
21 >
22 <SelectInput optionText={CustomerTitle} />
23 </ReferenceInput>
24 <NumberInput label="Discount" source="discount" />
25 <ReferenceInput source="product.id" reference="Product" label="Product">
26 <SelectInput optionText={ProductTitle} />
27 </ReferenceInput>
28 <NumberInput step={1} label="Quantity" source="quantity" />
29 <NumberInput step={1} label="Total Price" source="totalPrice" />
30 </SimpleForm>
31 </Create>
32 );
33};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected