mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-23 11:04:49 +00:00
117 lines
3.5 KiB
JavaScript
117 lines
3.5 KiB
JavaScript
import React from "react";
|
|
import Paper from "@material-ui/core/Paper";
|
|
import CssBaseline from "@material-ui/core/CssBaseline/CssBaseline";
|
|
import Typography from '@material-ui/core/Typography';
|
|
import Grid from '@material-ui/core/Grid';
|
|
import TextField from '@material-ui/core/TextField';
|
|
import FormControlLabel from '@material-ui/core/FormControlLabel';
|
|
import Checkbox from '@material-ui/core/Checkbox';
|
|
import Button from '@material-ui/core/Button';
|
|
import withStyles from "@material-ui/core/styles/withStyles";
|
|
|
|
const styles = theme => ({
|
|
layout: {
|
|
width: 'auto',
|
|
display: 'block',
|
|
marginLeft: theme.spacing.unit * 3,
|
|
marginRight: theme.spacing.unit * 3,
|
|
[theme.breakpoints.up(600 + theme.spacing.unit * 3 * 2)]: {
|
|
width: 600,
|
|
marginLeft: 'auto',
|
|
marginRight: 'auto',
|
|
},
|
|
},
|
|
paper: {
|
|
padding: theme.spacing.unit * 4,
|
|
},
|
|
});
|
|
|
|
function Profile(props) {
|
|
const { classes } = props;
|
|
return (
|
|
<React.Fragment>
|
|
<CssBaseline />
|
|
<div className={classes.layout}>
|
|
<Paper className={classes.paper}>
|
|
<Typography variant="headline">Profile</Typography>
|
|
<Grid container spacing={24}>
|
|
<Grid item xs={12} sm={6}>
|
|
<TextField
|
|
required
|
|
id="firstName"
|
|
name="firstName"
|
|
label="First name"
|
|
fullWidth
|
|
autoComplete="fname"
|
|
/>
|
|
</Grid>
|
|
<Grid item xs={12} sm={6}>
|
|
<TextField
|
|
required
|
|
id="lastName"
|
|
name="lastName"
|
|
label="Last name"
|
|
fullWidth
|
|
autoComplete="lname"
|
|
/>
|
|
</Grid>
|
|
<Grid item xs={12}>
|
|
<TextField
|
|
required
|
|
id="address1"
|
|
name="address1"
|
|
label="Address line 1"
|
|
fullWidth
|
|
autoComplete="billing address-line1"
|
|
/>
|
|
</Grid>
|
|
<Grid item xs={12} sm={6}>
|
|
<TextField
|
|
required
|
|
id="city"
|
|
name="city"
|
|
label="City"
|
|
fullWidth
|
|
autoComplete="billing address-level2"
|
|
/>
|
|
</Grid>
|
|
<Grid item xs={12} sm={6}>
|
|
<TextField id="state" name="state" label="State/Province/Region" fullWidth />
|
|
</Grid>
|
|
<Grid item xs={12} sm={6}>
|
|
<TextField
|
|
required
|
|
id="zip"
|
|
name="zip"
|
|
label="Zip / Postal code"
|
|
fullWidth
|
|
autoComplete="billing postal-code"
|
|
/>
|
|
</Grid>
|
|
<Grid item xs={12} sm={6}>
|
|
<TextField
|
|
required
|
|
id="country"
|
|
name="country"
|
|
label="Country"
|
|
fullWidth
|
|
autoComplete="billing country"
|
|
/>
|
|
</Grid>
|
|
<Grid item xs={12}>
|
|
<FormControlLabel
|
|
control={<Checkbox color="secondary" name="saveAddress" value="yes" />}
|
|
label="Use this address for payment details"
|
|
/>
|
|
</Grid>
|
|
<Grid item xs={12}>
|
|
<Button fullWidth variant="contained" color="primary">Update profile</Button>
|
|
</Grid>
|
|
</Grid>
|
|
</Paper>
|
|
</div>
|
|
</React.Fragment>
|
|
)
|
|
}
|
|
|
|
export default withStyles(styles)(Profile);
|