/
AddressForm.js
100 lines (96 loc) · 3.47 KB
/
AddressForm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import React from 'react';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import TextField from '@material-ui/core/TextField';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Checkbox from '@material-ui/core/Checkbox';
function AddressForm() {
return (
<React.Fragment>
<Typography variant="display1" gutterBottom>
Shipping address
</Typography>
<Grid container spacing={24} justify="center">
<Grid item xs={10} sm={5}>
<TextField
required
id="firstName"
name="firstName"
label="First name"
fullWidth
autoComplete="fname"
/>
</Grid>
<Grid item xs={10} sm={5}>
<TextField
required
id="lastName"
name="lastName"
label="Last name"
fullWidth
autoComplete="lname"
/>
</Grid>
<Grid item xs={10}>
<TextField
required
id="address1"
name="address1"
label="Address line 1"
fullWidth
autoComplete="billing address-line1"
/>
</Grid>
<Grid item xs={10}>
<TextField
id="addiress2"
name="addiress2"
label="Address line 2"
fullWidth
autoComplete="billing address-line2"
/>
</Grid>
<Grid item xs={10} sm={5}>
<TextField
required
id="city"
name="city"
label="City"
fullWidth
autoComplete="billing address-level2"
/>
</Grid>
<Grid item xs={10} sm={5}>
<TextField id="state" name="state" label="State/Province/Region" fullWidth />
</Grid>
<Grid item xs={10} sm={5}>
<TextField
required
id="zip"
name="zip"
label="Zip / Postal code"
fullWidth
autoComplete="billing postal-code"
/>
</Grid>
<Grid item xs={10} sm={5}>
<TextField
required
id="country"
name="country"
label="Country"
fullWidth
autoComplete="billing country"
/>
</Grid>
<Grid item xs={10}>
<FormControlLabel
control={<Checkbox color="secondary" name="saveAddress" value="yes" />}
label="Use this address for payment details"
/>
</Grid>
</Grid>
</React.Fragment>
);
}
export default AddressForm;