diff --git a/.vscode/settings.json b/.vscode/settings.json index a838981..3087519 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,17 @@ { "files.exclude": { "node_modules": true - } + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + + "prettier.tabWidth": 4, + "prettier.useTabs": true, + + "editor.formatOnSave": true } diff --git a/src/ui/routes/LoginRoute.tsx b/src/ui/routes/LoginRoute.tsx index a82ba2a..62d674d 100644 --- a/src/ui/routes/LoginRoute.tsx +++ b/src/ui/routes/LoginRoute.tsx @@ -1,113 +1,111 @@ /** * Login route - * + * * @author Pierre Hubert */ -import { Typography, Link, makeStyles, Container, CssBaseline, Avatar, TextField, FormControlLabel, Checkbox, Button, Grid, Box } from "@material-ui/core"; -import LockOutlinedIcon from '@material-ui/icons/LockOutlined'; +import { + Typography, + Link, + makeStyles, + Container, + CssBaseline, + Avatar, + TextField, + FormControlLabel, + Checkbox, + Button, + Grid, + Box, +} from "@material-ui/core"; + +import LockOutlinedIcon from "@material-ui/icons/LockOutlined"; import React from "react"; function Copyright() { - return ( - - {'Copyright © '} - - Your Website - {' '} - {new Date().getFullYear()} - {'.'} - - ); - } - - const useStyles = makeStyles((theme) => ({ - paper: { - marginTop: theme.spacing(8), - display: 'flex', - flexDirection: 'column', - alignItems: 'center', - }, - avatar: { - margin: theme.spacing(1), - backgroundColor: theme.palette.secondary.main, - }, - form: { - width: '100%', // Fix IE 11 issue. - marginTop: theme.spacing(1), - }, - submit: { - margin: theme.spacing(3, 0, 2), - }, - })); - -export function LoginRoute() { - const classes = useStyles(); - - return ( - - -
- - - - - Sign in - -
- - - } - label="Remember me" - /> - - - - - Forgot password? - - - - - {"Don't have an account? Sign Up"} - - - - -
- - - -
- ); - } - \ No newline at end of file + return ( + + {"Copyright © "} + Comunic  + {new Date().getFullYear()} + {"."} + + ); +} + +export class LoginRoute extends React.Component { + render() { + return ( +
+ + +
+ + + + + Comunic Console + +
+ + + + +
+ + + +
+
+ ); + } +}