import React from 'react'; import { Helmet } from 'react-helmet'; import brand from 'ba-api/brand'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Type from 'ba-styles/Typography.scss'; import ArrowForward from '@material-ui/icons/ArrowForward'; import logo from 'ba-images/logo.svg'; import { LoginForm } from 'ba-components'; import styles from 'ba-components/Forms/user-jss'; import { Grid, Hidden, Typography } from '@material-ui/core'; class Login extends React.Component { state = { valueForm: [] } submitForm(values) { setTimeout(() => { this.setState({ valueForm: values }); console.log(`You submitted:\n\n${this.state.valueForm}`); window.location.href = '/app'; }, 500); // simulate server latency } render() { const title = brand.name + ' - Login'; const description = brand.desc; const { classes } = this.props; return (
{title}
{/* Welcome Login */}
{brand.name}

{brand.name}

Hello there, welcome to {' '} {brand.name}
{/* ----------------------------------------------------------------------*/} {/* Load Login Form */} this.submitForm(values)} />
); } } Login.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(Login);