/** * 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 React from "react"; import { matAlert } from "../widgets/DialogsProvider"; function Copyright() { return ( {"Copyright © "} Comunic  {new Date().getFullYear()} {"."} ); } interface LoginRouteState { currEmail: string; } export class LoginRoute extends React.Component<{}, LoginRouteState> { constructor(props: any) { super(props); this.state = { currEmail: "", }; this.handleChangedEmail = this.handleChangedEmail.bind(this); this.handleSubmitEmail = this.handleSubmitEmail.bind(this); } get canSubmit(): boolean { return this.state.currEmail.length > 4; } handleChangedEmail(e: React.ChangeEvent) { this.setState({ currEmail: e.target.value }); } handleSubmitEmail(e: React.ChangeEvent) { e.preventDefault(); if (!this.canSubmit) return; matAlert("good"); } render() { return (
Comunic Console
); } }