network-resurrector-frontend/src/features/login/components/LoginComponent.js

46 lines
1.0 KiB
JavaScript
Raw Normal View History

2020-12-08 03:03:15 +02:00
import React from "react";
2020-12-16 01:29:56 +02:00
import { makeStyles } from "@material-ui/core/styles";
import { TextField, InputAdornment } from "@material-ui/core";
import { AccountCircleOutlined, LockOutlined } from "@material-ui/icons";
2020-12-19 02:28:20 +02:00
const useStyles = makeStyles(theme => ({
2020-12-16 01:29:56 +02:00
margin: {
2020-12-19 02:28:20 +02:00
margin: theme.spacing(1)
}
2020-12-16 01:29:56 +02:00
}));
2020-12-08 03:03:15 +02:00
const LoginComponent = () => {
2020-12-16 01:29:56 +02:00
const classes = useStyles();
return (
<div>
<TextField
className={classes.margin}
id="username"
label="Username"
InputProps={{
startAdornment: (
<InputAdornment position="start">
<AccountCircleOutlined />
</InputAdornment>
2020-12-19 02:28:20 +02:00
)
2020-12-16 01:29:56 +02:00
}}
/>
<br />
<TextField
className={classes.margin}
id="password"
label="Password"
InputProps={{
startAdornment: (
<InputAdornment position="start">
<LockOutlined />
</InputAdornment>
2020-12-19 02:28:20 +02:00
)
2020-12-16 01:29:56 +02:00
}}
/>
</div>
);
2020-12-08 03:03:15 +02:00
};
export default LoginComponent;